ModelMetadataIdentity.ForProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForProperty(PropertyInfo, Type, Type) |
ModelMetadataIdentity为提供的属性创建 。 |
ForProperty(Type, String, Type) |
已过时.
已过时.
ModelMetadataIdentity为提供的属性创建 。 |
ForProperty(PropertyInfo, Type, Type)
- Source:
- ModelMetadataIdentity.cs
ModelMetadataIdentity为提供的属性创建 。
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
参数
- propertyInfo
- PropertyInfo
属性。
- modelType
- Type
模型类型。
- containerType
- Type
模型属性的容器类型。
返回
适用于
ForProperty(Type, String, Type)
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
注意
This API is obsolete and may be removed in a future release.
注意
This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.
ModelMetadataIdentity为提供的属性创建 。
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
参数
- modelType
- Type
模型类型。
- name
- String
属性的名称。
- containerType
- Type
模型属性的容器类型。
返回
- 属性