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

适用于