CachedDataAnnotationsModelMetadata Constructor (DataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)
Initializes a new instance of the CachedDataAnnotationsModelMetadata class.
Namespace: System.Web.Http.Metadata.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
provider As DataAnnotationsModelMetadataProvider, _
containerType As Type, _
modelType As Type, _
propertyName As String, _
attributes As IEnumerable(Of Attribute) _
)
'Usage
Dim provider As DataAnnotationsModelMetadataProvider
Dim containerType As Type
Dim modelType As Type
Dim propertyName As String
Dim attributes As IEnumerable(Of Attribute)
Dim instance As New CachedDataAnnotationsModelMetadata(provider, _
containerType, modelType, propertyName, _
attributes)
public CachedDataAnnotationsModelMetadata(
DataAnnotationsModelMetadataProvider provider,
Type containerType,
Type modelType,
string propertyName,
IEnumerable<Attribute> attributes
)
public:
CachedDataAnnotationsModelMetadata(
DataAnnotationsModelMetadataProvider^ provider,
Type^ containerType,
Type^ modelType,
String^ propertyName,
IEnumerable<Attribute^>^ attributes
)
new :
provider:DataAnnotationsModelMetadataProvider *
containerType:Type *
modelType:Type *
propertyName:string *
attributes:IEnumerable<Attribute> -> CachedDataAnnotationsModelMetadata
public function CachedDataAnnotationsModelMetadata(
provider : DataAnnotationsModelMetadataProvider,
containerType : Type,
modelType : Type,
propertyName : String,
attributes : IEnumerable<Attribute>
)
Parameters
provider
Type: System.Web.Http.Metadata.Providers.DataAnnotationsModelMetadataProviderThe metadata provider.
containerType
Type: System.TypeThe type of the container.
modelType
Type: System.TypeThe type of the model.
propertyName
Type: System.StringThe name of the property.
attributes
Type: System.Collections.Generic.IEnumerable<Attribute>The attributes that provides data for the initialization.
See Also
Reference
CachedDataAnnotationsModelMetadata Class