ModelMetadata Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ModelMetadata class.
public:
ModelMetadata(System::Web::ModelBinding::ModelMetadataProvider ^ provider, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName);
public ModelMetadata (System.Web.ModelBinding.ModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
new System.Web.ModelBinding.ModelMetadata : System.Web.ModelBinding.ModelMetadataProvider * Type * Func<obj> * Type * string -> System.Web.ModelBinding.ModelMetadata
Public Sub New (provider As ModelMetadataProvider, containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String)
Parameters
- provider
- ModelMetadataProvider
The provider object.
- containerType
- Type
The type of the container, or null
to create metadata for the model type.
- modelType
- Type
The type of the model.
- propertyName
- String
The name of the property, or null
to create metadata for the model type.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.