Class AdditionalMetadataAttribute
Provides a class that implements the IMetadataAware interface in order to support additional metadata.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Interface, AllowMultiple = true)]
public sealed class AdditionalMetadataAttribute : Attribute, IMetadataAware
- Inheritance
-
AdditionalMetadataAttribute
- Implements
- Inherited Members
Constructors
AdditionalMetadataAttribute(string, object)
Initializes a new instance of the AdditionalMetadataAttribute class.
public AdditionalMetadataAttribute(string name, object value)
Parameters
Properties
Name
Gets the name of the additional metadata attribute.
public string Name { get; }
Property Value
- string
The name of the of the additional metadata attribute.
TypeId
Gets the type of the of the additional metadata attribute.
public override object TypeId { get; }
Property Value
- object
The type of the of the additional metadata attribute.
Value
Gets the value of the of the additional metadata attribute.
public object Value { get; }
Property Value
- object
The value of the of the additional metadata attribute.
Methods
OnMetadataCreated(ModelMetadata)
Provides metadata to the model metadata creation process.
public void OnMetadataCreated(ModelMetadata metadata)
Parameters
metadata
ModelMetadataThe meta data.