ModelMetadataIdentity.ForProperty Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
- Attributs