NameScopePropertyAttribute.Name 属性

定义

获取提供 XAML 命名空间的属性的名称。Gets the name of the property that provides the XAML namescope.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

属性值

一个字符串值,该值是提供 XAML 命名空间的属性的名称。A string value that is the name of the property that provides the XAML namescope.

注解

Name 的含义取决于是否设置 TypeThe meaning of Name depends on whether Type is set. 如果 Type 为 null,则 Name 引用正在属性化的类型的属性。If Type is null, then Name references a property on the type being attributed. 如果 Type 包含一个值,则 Name 将引用所指示 Type上的一个属性。If Type contains a value, then Name references a property on the indicated Type.

适用于