PropertyModel 类

定义

用于表示 中的 ControllerModel属性的类型。

public ref class PropertyModel : Microsoft::AspNetCore::Mvc::ApplicationModels::IBindingModel, Microsoft::AspNetCore::Mvc::ApplicationModels::ICommonModel
public ref class PropertyModel : Microsoft::AspNetCore::Mvc::ApplicationModels::ParameterModelBase, Microsoft::AspNetCore::Mvc::ApplicationModels::ICommonModel
public class PropertyModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel
public class PropertyModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel
type PropertyModel = class
    interface ICommonModel
    interface IPropertyModel
    interface IBindingModel
type PropertyModel = class
    inherit ParameterModelBase
    interface ICommonModel
    interface IPropertyModel
    interface IBindingModel
type PropertyModel = class
    inherit ParameterModelBase
    interface IBindingModel
    interface ICommonModel
    interface IPropertyModel
Public Class PropertyModel
Implements IBindingModel, ICommonModel
Public Class PropertyModel
Inherits ParameterModelBase
Implements ICommonModel
继承
PropertyModel
继承
PropertyModel
实现

构造函数

名称 说明
PropertyModel(PropertyInfo, IReadOnlyList<Object>)

创建 PropertyModel 的新实例。

PropertyModel(PropertyModel)

从给定 PropertyModel创建 的新PropertyModel实例。

属性

名称 说明
Attributes

获取在 属性上批注的任何属性。

BindingInfo

获取或设置 BindingInfo 与此模型关联的 。

BindingInfo

BindingInfo

(继承自 ParameterModelBase)
Controller

获取或设置 ControllerModel 与此 PropertyModel 关联的 。

Name

名称。

(继承自 ParameterModelBase)
ParameterType

类型。

(继承自 ParameterModelBase)
Properties

属性。

PropertyInfo

PropertyInfo

PropertyName

属性的名称。

显式接口实现

名称 说明
ICommonModel.MemberInfo

用于表示 中的 ControllerModel属性的类型。

ICommonModel.Name

用于表示 中的 ControllerModel属性的类型。

适用于