Table of Contents

Class ModelMetadataAttribute

Namespace
NMF.Models
Assembly
NMF.Models.dll

Declares that the assembly includes code for a given metamodel

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class ModelMetadataAttribute : Attribute
Inheritance
ModelMetadataAttribute
Inherited Members

Constructors

ModelMetadataAttribute(string, string)

Defines that the assembly contains a model at the given embedded resource name

public ModelMetadataAttribute(string modelUri, string resourceName)

Parameters

modelUri string

The URI of the model

resourceName string

The resource name or name suffix

Properties

ModelUri

The model uri

public Uri ModelUri { get; }

Property Value

Uri

ResourceName

the name of the resource

public string ResourceName { get; }

Property Value

string

Methods

LoadMetamodel(Assembly, string[])

Loads the manifest stream containing the metamodel from the given assembly and resource names. If the resource name is not found, an exception is thrown.

public virtual Stream LoadMetamodel(Assembly assembly, string[] resourceNames)

Parameters

assembly Assembly

The assembly to which this attribute is attached

resourceNames string[]

the resource names available for the given assembly

Returns

Stream

A stream containing the metamodel described by this instance