PropertyMetadata 类
定义
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
表示依赖项属性的行为。Represents the behavior of a dependency property.
public ref class PropertyMetadata
public class PropertyMetadata
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class PropertyMetadata
type PropertyMetadata = class
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type PropertyMetadata = class
Public Class PropertyMetadata
- 继承
-
PropertyMetadata
- 属性
注解
备注
本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
构造函数
| PropertyMetadata() |
初始化 PropertyMetadata 类的新实例。Initializes a new instance of the PropertyMetadata class. |
| PropertyMetadata(Attribute[]) |
使用属性数组初始化 PropertyMetadata 类的新实例。Initializes a new instance of the PropertyMetadata class with an array of attributes. |
| PropertyMetadata(DependencyPropertyOptions) |
使用 PropertyMetadata 枚举值初始化 DependencyPropertyOptions 类的新实例。Initializes a new instance of the PropertyMetadata class with a DependencyPropertyOptions enumeration value. |
| PropertyMetadata(DependencyPropertyOptions, Attribute[]) |
使用 PropertyMetadata 枚举值和属性数组初始化 DependencyPropertyOptions 类的新实例。Initializes a new instance of the PropertyMetadata class with a DependencyPropertyOptions enumeration value and an array of attributes. |
| PropertyMetadata(Object) |
使用默认属性值初始化 PropertyMetadata 类的新实例。Initializes a new instance of the PropertyMetadata class with a default property value. |
| PropertyMetadata(Object, Attribute[]) |
使用默认属性值和特性数组初始化 PropertyMetadata 类的新实例。Initializes a new instance of the PropertyMetadata class with a default property value and an array of attributes. |
| PropertyMetadata(Object, DependencyPropertyOptions) |
使用默认属性值和 PropertyMetadata 枚举值初始化 DependencyPropertyOptions 类的新实例。Initializes a new instance of the PropertyMetadata class with a default property value and a DependencyPropertyOptions enumeration value. |
| PropertyMetadata(Object, DependencyPropertyOptions, Attribute[]) |
使用默认属性值、PropertyMetadata 枚举值和特性数组初始化 DependencyPropertyOptions 类的新实例。Initializes a new instance of the PropertyMetadata class with a default property value, a DependencyPropertyOptions enumeration value, and an array of attributes. |
| PropertyMetadata(Object, DependencyPropertyOptions, GetValueOverride, SetValueOverride) |
使用默认属性值、PropertyMetadata 枚举值以及用于重写与依赖属性关联的 DependencyPropertyOptions 和 |
| PropertyMetadata(Object, DependencyPropertyOptions, GetValueOverride, SetValueOverride, Attribute[]) |
使用默认属性 (Property) 值、PropertyMetadata 枚举值、用于重写与依赖属性 (Property) 关联的 DependencyPropertyOptions 和 |
属性
| DefaultValue |
获取或设置关联依赖项属性的默认值。Gets or sets the default value of the associated dependency property. |
| GetValueOverride |
获取或设置 GetValueOverride 回调,在调用 GetValue(DependencyProperty) 方法时会立即调用该回调。Gets or sets the GetValueOverride callback, a callback invoked immediately upon a call to the GetValue(DependencyProperty) method. |
| IsMetaProperty |
获取一个值,该值指示 Options 是否设置为 Metadata。Gets a value that indicates whether the Options is set to Metadata. |
| IsNonSerialized |
获取一个值,该值指示 Options 是否设置为 NonSerialized。Gets a value that indicates whether the Options is set to NonSerialized. |
| IsReadOnly |
获取一个值,该值指示 Options 是否设置为 ReadOnly。Gets a value that indicates whether the Options are set to ReadOnly. |
| IsSealed |
获取一个值,该值指示是否已将 PropertyMetadata 应用到导致不可变状态的属性。Gets a value that indicates whether the PropertyMetadata has been applied to a property resulting in the immutable state. |
| Options |
获取或设置一个属性,该属性表示与此 PropertyMetadata 关联的 DependencyProperty 的选项设置。Gets or sets the property which represents the option setting for the DependencyProperty associated to this PropertyMetadata. |
| SetValueOverride |
获取或设置 SetValueOverride 回调,在调用 SetValue(DependencyProperty, Object) 方法时会立即调用该回调。Gets or sets the SetValueOverride callback, a callback invoked immediately upon a call to the SetValue(DependencyProperty, Object) method. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetAttributes() |
检索包含所有属性的数组。Retrieves an array that contains all attributes. |
| GetAttributes(Type) |
接收 Attribute 类型的数组,该数组包含那些类型等于 |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnApply(DependencyProperty, Type) |
在将此 PropertyMetadata 应用到依赖项属性时提供处理。Provides processing when this PropertyMetadata is applied to a dependency property. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |