ContentPropertyAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ContentPropertyAttribute 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| ContentPropertyAttribute() |
初始化 ContentPropertyAttribute 类的新实例。 |
| ContentPropertyAttribute(String) |
使用指定的名称初始化类的新实例 ContentPropertyAttribute 。 |
ContentPropertyAttribute()
初始化 ContentPropertyAttribute 类的新实例。
public:
ContentPropertyAttribute();
public ContentPropertyAttribute();
Public Sub New ()
注解
Inherited=true由于特性的声明,通常将ContentPropertyAttribute内容属性指定的值应用于所有派生类。 使用此签名或应用空 ContentPropertyAttribute,使派生类能够删除基类对内容属性属性的声明(并注意该类没有内容属性)。
适用于
ContentPropertyAttribute(String)
使用指定的名称初始化类的新实例 ContentPropertyAttribute 。
public:
ContentPropertyAttribute(System::String ^ name);
public ContentPropertyAttribute(string name);
new System.Windows.Markup.ContentPropertyAttribute : string -> System.Windows.Markup.ContentPropertyAttribute
Public Sub New (name As String)
参数
- name
- String
内容属性的属性的属性名称。
注解
假设 CLR 支持,提供的 name 应与 MemberInfo.Name CLR 类型系统中相关属性匹配。