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 应与 CLR 类型系统中相关属性的 匹配 MemberInfo.Name 。