Partager via


ModelMetadataIdentity.ForProperty Méthode

Définition

Surcharges

ForProperty(PropertyInfo, Type, Type)

Crée un ModelMetadataIdentity pour la propriété fournie.

ForProperty(Type, String, Type)
Obsolète.
Obsolète.

Crée un ModelMetadataIdentity pour la propriété fournie.

ForProperty(PropertyInfo, Type, Type)

Source:
ModelMetadataIdentity.cs

Crée un ModelMetadataIdentity pour la propriété fournie.

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

Paramètres

propertyInfo
PropertyInfo

Propriété.

modelType
Type

Type de modèle.

containerType
Type

Type de conteneur de la propriété de modèle.

Retours

Un ModelMetadataIdentity.

S’applique à

ForProperty(Type, String, Type)

Source:
ModelMetadataIdentity.cs
Source:
ModelMetadataIdentity.cs
Source:
ModelMetadataIdentity.cs

Attention

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

Attention

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

Crée un ModelMetadataIdentity pour la propriété fournie.

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

Paramètres

modelType
Type

Type de modèle.

name
String

Nom de la propriété.

containerType
Type

Type de conteneur de la propriété de modèle.

Retours

Un ModelMetadataIdentity.

Attributs

S’applique à