Class ModelMetadataAttribute
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
Properties
ModelUri
The model uri
public Uri ModelUri { get; }
Property Value
ResourceName
the name of the resource
public string ResourceName { get; }
Property Value
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
assemblyAssemblyThe assembly to which this attribute is attached
resourceNamesstring[]the resource names available for the given assembly
Returns
- Stream
A stream containing the metamodel described by this instance