Initializes a new instance of the MetadataTypeAttribute class.
'Usage Dim metadataClassType As Type Dim instance As New MetadataTypeAttribute(metadataClassType) 'Declaration Public Sub New ( _ metadataClassType As Type _ )
metadataClassType is nullNothingnullptra null reference (Nothing in Visual Basic).
The following example shows how to use the MetadataTypeAttribute to associate a metadata class with an entity partial class.
<MetadataType(GetType(CustomerMetadata))> _ Partial Public Class Customer End Class
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003