Share via


ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Method

Definition

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.

Returns

A ModelMetadataIdentity.

Applies to