ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Method
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.
Creates a ModelMetadataIdentity for the provided parameter with the specified model type.
public:
static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForConstructor(System::Reflection::ConstructorInfo ^ constructor, Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForConstructor (System.Reflection.ConstructorInfo constructor, Type modelType);
static member ForConstructor : System.Reflection.ConstructorInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForConstructor (constructor As ConstructorInfo, modelType As Type) As ModelMetadataIdentity
Parameters
- constructor
- ConstructorInfo
The ConstructorInfo.
- modelType
- Type
The model type.