CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable(Of 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)
'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)
Parameters
- provider
- Type: System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider
The provider.
- containerType
- Type: System.Type
The container type.
- modelType
- Type: System.Type
The model type.
- propertyName
- Type: System.String
The property name.
- attributes
- Type: System.Collections.Generic.IEnumerable(Of Attribute)
The attributes.
Show: