NameScopePropertyAttribute.Type 属性

定义

获取提供 XAML 命名空间支持的附加属性的所有者类型。Gets the owner type of the attached property that provides the XAML namescope support.

public:
 property Type ^ Type { Type ^ get(); };
public Type Type { get; }
member this.Type : Type
Public ReadOnly Property Type As Type

属性值

一个 Type,它是提供 XAML 命名空间支持的附加属性的所有者类型;或者为 nullA Type value that is the owner type of the attached property that provides the XAML namescope support, or null.

注解

此属性仅适用于 XAML 名称范围实现属性为可附加成员的情况,在这种情况下,这是可附加成员的所有者类型。This property only is relevant if the XAML namescope implementing property is an attachable member, in which case this is the attachable member's owner type. 否则,此值可能为 null。Otherwise, this value may be null. 如果需要常规的基于反射的逻辑在所有情况下报告名称范围属性的定义类型,则每当遇到此属性的 null 时,可以替换应用该属性的类型。If you need general reflection-based logic that reports a namescope property's defining type in all cases, then you can substitute the type where the attribute is applied whenever you encounter null for this property.

适用于