共用方式為


WorkflowServiceAttributes.MaxItemsInObjectGraph 屬性

定義

取得或設定已序列化之物件中允許的項目數目上限。

public:
 property int MaxItemsInObjectGraph { int get(); void set(int value); };
public int MaxItemsInObjectGraph { get; set; }
member this.MaxItemsInObjectGraph : int with get, set
Public Property MaxItemsInObjectGraph As Integer

屬性值

物件中允許的項目數目上限。

範例

下列範例將示範如何存取 MaxItemsInObjectGraph 屬性。

WorkflowServiceAttributes attributes = new WorkflowServiceAttributes();
attributes.MaxItemsInObjectGraph = 10;
Dim attributes As New WorkflowServiceAttributes()
attributes.MaxItemsInObjectGraph = 10

備註

預設值是 MaxValue

適用於