SPWorkflowTemplateCollection class

Represents the collection of workflow templates currently deployed on a site.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.Workflow.SPWorkflowTemplateCollection

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ClientCallableTypeAttribute(Name := "WorkflowTemplateCollection", ServerTypeId := "{f64cc3d2-888a-43cc-b579-ef32f83338a4}",  _
    CollectionIndexerMethodClientName := "GetById", CollectionChildItemType := GetType(SPWorkflowTemplate),  _
    SampleUrl := "{apiroot}/web/workflowtemplates")> _
<SubsetCallableTypeAttribute> _
Public Class SPWorkflowTemplateCollection _
    Inherits SPBaseCollection
'Usage
Dim instance As SPWorkflowTemplateCollection
[ClientCallableTypeAttribute(Name = "WorkflowTemplateCollection", ServerTypeId = "{f64cc3d2-888a-43cc-b579-ef32f83338a4}", 
    CollectionIndexerMethodClientName = "GetById", CollectionChildItemType = typeof(SPWorkflowTemplate), 
    SampleUrl = "{apiroot}/web/workflowtemplates")]
[SubsetCallableTypeAttribute]
public class SPWorkflowTemplateCollection : SPBaseCollection

Remarks

Each SPWorkflowTemplate object represents a workflow template and contains members you can use to get or set information about the template, such as the instantiation data and the history and task lists for the template.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPWorkflowTemplateCollection members

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview