Share via


ContentPropertyAttribute 构造函数

定义

初始化 ContentPropertyAttribute 类的新实例。

重载

ContentPropertyAttribute()

初始化 ContentPropertyAttribute 类的新实例。

ContentPropertyAttribute(String)

初始化 ContentPropertyAttribute 类的新实例,同时初始化 Name 属性。

ContentPropertyAttribute()

初始化 ContentPropertyAttribute 类的新实例。

public:
 ContentPropertyAttribute();
public ContentPropertyAttribute ();
Public Sub New ()

适用于

ContentPropertyAttribute(String)

初始化 ContentPropertyAttribute 类的新实例,同时初始化 Name 属性。

public:
 ContentPropertyAttribute(System::String ^ name);
public ContentPropertyAttribute (string name);
new System.Workflow.ComponentModel.Serialization.ContentPropertyAttribute : string -> System.Workflow.ComponentModel.Serialization.ContentPropertyAttribute
Public Sub New (name As String)

参数

name
String

一个 String,其中包含 Name 属性的值。

注解

对于 Windows Workflow Foundation,以下限制与 ContentPropertyAttribute 有关:

  • TypeStack<T>Queue<T> 是不支持的 ContentProperty 类型。

  • 空字符串将反序列化为 Null 值。

  • 使用 ContentProperty 绑定到字段的 ActivityBind 不会被序列化为 ContentProperty

  • 工作流标记中不支持与非内容属性交错的 ContentProperty

适用于