Condividi tramite


ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Metodo

Definizione

Crea un ModelMetadataIdentity oggetto per il parametro specificato con il tipo di modello specificato.

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

Parametri

constructor
ConstructorInfo

Oggetto ConstructorInfo.

modelType
Type

Tipo di modello.

Restituisce

Oggetto ModelMetadataIdentity.

Si applica a