CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)
Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the provider, container type, model type, property name and attributes.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
provider As CachedDataAnnotationsModelMetadataProvider, _
containerType As Type, _
modelType As Type, _
propertyName As String, _
attributes As IEnumerable(Of Attribute) _
)
'Usage
Dim provider As CachedDataAnnotationsModelMetadataProvider
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(
CachedDataAnnotationsModelMetadataProvider provider,
Type containerType,
Type modelType,
string propertyName,
IEnumerable<Attribute> attributes
)
public:
CachedDataAnnotationsModelMetadata(
CachedDataAnnotationsModelMetadataProvider^ provider,
Type^ containerType,
Type^ modelType,
String^ propertyName,
IEnumerable<Attribute^>^ attributes
)
new :
provider:CachedDataAnnotationsModelMetadataProvider *
containerType:Type *
modelType:Type *
propertyName:string *
attributes:IEnumerable<Attribute> -> CachedDataAnnotationsModelMetadata
public function CachedDataAnnotationsModelMetadata(
provider : CachedDataAnnotationsModelMetadataProvider,
containerType : Type,
modelType : Type,
propertyName : String,
attributes : IEnumerable<Attribute>
)
Parameters
provider
Type: System.Web.Mvc.CachedDataAnnotationsModelMetadataProviderThe provider.
containerType
Type: System.TypeThe container type.
modelType
Type: System.TypeThe model type.
propertyName
Type: System.StringThe property name.
attributes
Type: System.Collections.Generic.IEnumerable<Attribute>The attributes.
See Also
Reference
CachedDataAnnotationsModelMetadata Class