WorkflowDefinition.RestrictToType property
Gets or sets a value that limits the available event source type for a workflow subscription that is using the specified workflow definition.
Namespace: Microsoft.SharePoint.WorkflowServices
Assembly: Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)
Syntax
'Declaration
<ClientCallablePropertyAttribute> _
Public Property RestrictToType As String
Get
Set
'Usage
Dim instance As WorkflowDefinition
Dim value As String
value = instance.RestrictToType
instance.RestrictToType = value
[ClientCallablePropertyAttribute]
public string RestrictToType { get; set; }
Property value
Type: System.String
Returns a string representation of the available event source type.
Remarks
Possible values include "List", "Site", "", or a null reference (Nothing in Visual Basic). For example, a value of "List" indicates this definition is a list workflow and can only be associated to a SharePoint list. An Empty or a null reference (Nothing in Visual Basic) value indicates this definition is a universal template and is able to associate with any event source type.