ModelMetadataIdentity.ForProperty Método

Definição

Sobrecargas

ForProperty(PropertyInfo, Type, Type)

Cria um ModelMetadataIdentity para a propriedade fornecida.

ForProperty(Type, String, Type)
Obsoleto.
Obsoleto.

Cria um ModelMetadataIdentity para a propriedade fornecida.

ForProperty(PropertyInfo, Type, Type)

Origem:
ModelMetadataIdentity.cs

Cria um ModelMetadataIdentity para a propriedade fornecida.

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

Parâmetros

propertyInfo
PropertyInfo

A propriedade.

modelType
Type

O tipo de modelo.

containerType
Type

O tipo de contêiner da propriedade de modelo.

Retornos

Uma ModelMetadataIdentity.

Aplica-se a

ForProperty(Type, String, Type)

Origem:
ModelMetadataIdentity.cs
Origem:
ModelMetadataIdentity.cs
Origem:
ModelMetadataIdentity.cs

Cuidado

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

Cuidado

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

Cria um ModelMetadataIdentity para a propriedade fornecida.

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

Parâmetros

modelType
Type

O tipo de modelo.

name
String

O nome da propriedade.

containerType
Type

O tipo de contêiner da propriedade de modelo.

Retornos

Uma ModelMetadataIdentity.

Atributos

Aplica-se a