MemberDefinition 类

定义

提供基类,该基类用于在声明性 XAML 中定义类成员的标记技术。Provides the base class that is used for a markup technique of defining members of a class in declarative XAML.

public ref class MemberDefinition abstract
public abstract class MemberDefinition
type MemberDefinition = class
Public MustInherit Class MemberDefinition
继承
MemberDefinition
派生

注解

PropertyDefinition类是用于在声明性 XAML 中定义属性的相关切实可行的类。The PropertyDefinition class is the relevant practical class that enables defining a property in declarative XAML.

在声明性 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.

构造函数

MemberDefinition()

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

属性

Name

在派生类中实现时,获取或设置要定义的成员的名称。When implemented in a derived class, gets or sets the name of the member 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)

适用于

另请参阅