ModelMetadataIdentity.ForProperty Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ForProperty(PropertyInfo, Type, Type) |
Crea un ModelMetadataIdentity para la propiedad proporcionada. |
ForProperty(Type, String, Type) |
Obsoletos.
Obsoletos.
Crea un ModelMetadataIdentity para la propiedad proporcionada. |
ForProperty(PropertyInfo, Type, Type)
- Source:
- ModelMetadataIdentity.cs
Crea un ModelMetadataIdentity para la propiedad proporcionada.
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
Propiedad.
- modelType
- Type
Tipo de modelo.
- containerType
- Type
Tipo de contenedor de la propiedad del modelo.
Devoluciones
Un objeto ModelMetadataIdentity.
Se aplica a
ForProperty(Type, String, Type)
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
Precaución
This API is obsolete and may be removed in a future release.
Precaución
This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.
Crea un ModelMetadataIdentity para la propiedad proporcionada.
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
Tipo de modelo.
- name
- String
El nombre de la propiedad.
- containerType
- Type
Tipo de contenedor de la propiedad del modelo.
Devoluciones
Un objeto ModelMetadataIdentity.
- Atributos