RegisterAsMetadataTypeAttribute Class
Registers a class as a metadata body class for another class.
Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Class)> _
Public Class RegisterAsMetadataTypeAttribute _
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class)]
public class RegisterAsMetadataTypeAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class)]
public ref class RegisterAsMetadataTypeAttribute : public Attribute
public class RegisterAsMetadataTypeAttribute extends Attribute
Remarks
When applying metadata attributes to classes, the target class might not always allow itself to be anotated.
This attribute can be used to nominate another class to contain the metadata attributes.
The metadata type should follow the same structure as the target type and its members cab be decorated with the metadata attributes.
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design.RegisterAsMetadataTypeAttribute
See Also
RegisterAsMetadataTypeAttribute Members
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design Namespace