PropertyDefinition 类

定义

支持在声明性 XAML 中定义类属性的标记技术。Supports a markup technique of defining properties of a class in declarative XAML.

public ref class PropertyDefinition : System::Windows::Markup::MemberDefinition
public class PropertyDefinition : System.Windows.Markup.MemberDefinition
type PropertyDefinition = class
    inherit MemberDefinition
Public Class PropertyDefinition
Inherits MemberDefinition
继承
PropertyDefinition

注解

在声明性 XAML 中定义类成员的全部功能在此 API 中不是自包含的。Support for the overall feature of defining members of a class in declarative XAML is not self-contained in this API. 此 API 仅提供使声明在 XAML 中可行的标记定义。This API only provides the markup definitions that make the declarations possible in XAML. 如何解释此类 XAML 的实际生成任务处理特定于单个生成任务以及引用它们的框架或技术。The actual build task handling of how such XAML is interpreted is specific to individual build tasks and the frameworks or technologies that reference them.

构造函数

PropertyDefinition()

初始化 PropertyDefinition 类的新实例。Initializes a new instance of the PropertyDefinition class.

属性

Attributes

获取关联的 CLR 特性的列表。Gets a list of associated CLR attributes.

Modifier

获取或设置定义的属性的访问级别。Gets or sets the access level of the defined property.

Name

获取或设置要定义的属性的名称。Gets or sets the name of the property to define.

Type

获取或设置要定义的属性的 XamlTypeGets or sets the XamlType of the property to define.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于