Udostępnij za pośrednictwem


ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Metoda

Definicja

ModelMetadataIdentity Tworzy element dla podanego parametru z określonym typem modelu.

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

Parametry

constructor
ConstructorInfo

Element ConstructorInfo.

modelType
Type

Typ modelu.

Zwraca

Klasa ModelMetadataIdentity.

Dotyczy