XDocument.GetWorkflowTemplates Method
InfoPath Developer Reference |
Gets a reference to a WorkflowTemplates collection for the current form.
Version Information
Version Added: InfoPath 2007
Syntax
expression.GetWorkflowTemplates
expression An expression that returns an XDocument object.
Return Value
WorkflowTemplates
Remarks
The WorkflowTemplates collection is part of the Microsoft Office 12.0 Object Library.
Example
In the following example, the Count property of the WorkflowTemplates collection is used to show the number of workflow templates associated with the form.
Note |
---|
If at least one workflow is not associated with the form, the GetWorkflowTemplates method will return an error. |
JScript |
---|
|
Remarks
Security Level 3: Can be accessed only by fully trusted forms.