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

適用於