Condividi tramite


ModelMetadataIdentity.ForProperty Metodo

Definizione

Overload

ForProperty(PropertyInfo, Type, Type)

Crea un ModelMetadataIdentity oggetto per la proprietà specificata.

ForProperty(Type, String, Type)
Obsoleti.
Obsoleti.

Crea un ModelMetadataIdentity oggetto per la proprietà specificata.

ForProperty(PropertyInfo, Type, Type)

Origine:
ModelMetadataIdentity.cs

Crea un ModelMetadataIdentity oggetto per la proprietà specificata.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForProperty(System::Reflection::PropertyInfo ^ propertyInfo, Type ^ modelType, Type ^ containerType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (System.Reflection.PropertyInfo propertyInfo, Type modelType, Type containerType);
static member ForProperty : System.Reflection.PropertyInfo * Type * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForProperty (propertyInfo As PropertyInfo, modelType As Type, containerType As Type) As ModelMetadataIdentity

Parametri

propertyInfo
PropertyInfo

Proprietà.

modelType
Type

Tipo di modello.

containerType
Type

Tipo di contenitore della proprietà del modello.

Restituisce

Oggetto ModelMetadataIdentity.

Si applica a

ForProperty(Type, String, Type)

Origine:
ModelMetadataIdentity.cs
Origine:
ModelMetadataIdentity.cs
Origine:
ModelMetadataIdentity.cs

Attenzione

This API is obsolete and may be removed in a future release.

Attenzione

This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.

Crea un ModelMetadataIdentity oggetto per la proprietà specificata.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForProperty(Type ^ modelType, System::String ^ name, Type ^ containerType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
[System.Obsolete("This API is obsolete and may be removed in a future release.")]
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
[System.Obsolete("This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.")]
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
[<System.Obsolete("This API is obsolete and may be removed in a future release.")>]
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
[<System.Obsolete("This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.")>]
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForProperty (modelType As Type, name As String, containerType As Type) As ModelMetadataIdentity

Parametri

modelType
Type

Tipo di modello.

name
String

Nome della proprietà.

containerType
Type

Tipo di contenitore della proprietà del modello.

Restituisce

Oggetto ModelMetadataIdentity.

Attributi

Si applica a