WorkflowDefinition.RestrictToScope property
Gets or sets a value that limits the scope of the workflow definition. The property value is a guid value that is used in conjunction with the RestrictToType property to further restrict the scope of the workflow definition.
Namespace: Microsoft.SharePoint.WorkflowServices
Assembly: Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)
Syntax
'Declaration
<ClientCallablePropertyAttribute> _
Public Property RestrictToScope As String
Get
Set
'Usage
Dim instance As WorkflowDefinition
Dim value As String
value = instance.RestrictToScope
instance.RestrictToScope = value
[ClientCallablePropertyAttribute]
public string RestrictToScope { get; set; }
Property value
Type: System.String
Returns a string representation of the value.
Remarks
Used in conjunction with the RestrictToType property to restrict the scope of the workflow definition. For example, if the RestrictToType property value is "List,” then setting the RestrictToScope value to a particular list id limits the definition to an association only to the specified list. If the RestrictToType is "List" but the RestrictToScope is a null reference (Nothing in Visual Basic) or empty, then the definition in associable to any list.