DomainPropertyInfo 类

表示域类的属性。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.DomainObjectInfo
    Microsoft.VisualStudio.Modeling.DomainPropertyInfo

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public NotInheritable Class DomainPropertyInfo _
    Inherits DomainObjectInfo
public sealed class DomainPropertyInfo : DomainObjectInfo

DomainPropertyInfo 类型公开以下成员。

属性

  名称 说明
公共属性 DefaultValue 获取此域属性的默认值。
公共属性 DisplayName 获取元素的显示名称。 (继承自 DomainObjectInfo。)
公共属性 DomainClass 获取声明此属性的域类。
公共属性 DomainModel 获取域类具有已定义属性的域模型。 (重写 DomainObjectInfo.DomainModel。)
公共属性 ElementNameProvider 为此域属性获取唯一的名称提供程序。
公共属性 Id 获取元素的 ID。 (继承自 DomainObjectInfo。)
公共属性 Kind 获取该属性的种类。
公共属性 Name 获取元素的名称。 (继承自 DomainObjectInfo。)
公共属性 PropertyInfo 获取有关域属性的信息 。
公共属性 PropertyType 获取分配给属性的类型。
公共属性 ValueHandler 获取此属的值处理程序。

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue 获取指定模型元素的属性的值。
公共方法 NotifyValueChange 向侦听器发出属性值已更改的通知。
公共方法 SetValue 在给定模型元素设置属性的值。
公共方法 ToString 将元素转换为字符串。 (继承自 DomainObjectInfo。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling 命名空间