次の方法で共有


WorkflowAssociation クラス

Represents the association of a workflow template with a specific list or content type, and that contains members that return custom information about that workflow's association with the specific list or content type.

継承階層

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.SharePoint.Client.Workflow.WorkflowAssociation

名前空間:  Microsoft.SharePoint.Client.Workflow
アセンブリ:   Microsoft.SharePoint.Client.Silverlight (Microsoft.SharePoint.Client.Silverlight.dll 内);  Microsoft.SharePoint.Client.Phone (Microsoft.SharePoint.Client.Phone.dll 内)  Microsoft.SharePoint.Client (Microsoft.SharePoint.Client.dll 内)

構文

'宣言
Public NotInheritable Class WorkflowAssociation _
    Inherits ClientObject
'使用
Dim instance As WorkflowAssociation
public sealed class WorkflowAssociation : ClientObject

注釈

A workflow association represents the binding of a workflow template to a specific list or content type. Workflow associations enable you to specify properties of the workflow as it applies to the specific list or content type to which you bind it.

A given workflow template can be bound to the same list or content type multiple times, resulting in multiple workflow associations.

For more information, see Workflow Stages.

To associate a workflow template with a website, use the Add(SPWorkflowAssociation) method on the WorkflowAssociations property of the SPWeb object.

To associate a workflow template with a list or document library, use the Add(SPWorkflowAssociation) method on the WorkflowAssociations property of the SPList object.

To associate a workflow template with a content type, use the Add(SPWorkflowAssociation) method on the WorkflowAssociations property of the SPContentType object.

All of these methods take an SPWorkflowAssociation() object and add it to the specified website, list, or content type. To create the appropriate workflow association, use the CreateWebAssociation(SPWorkflowTemplate, String, SPList, SPList), CreateListAssociation, CreateListContentTypeAssociation, or CreateWebContentTypeAssociation method of the SPWorkflowAssociation object itself.

Use the Remove(SPWorkflowAssociation) method on the WorkflowAssociations property of the SPWeb, SPList, or SPContentType object to remove a workflow association from a website, list, or content type.

スレッド セーフ

この型のパブリック static (Visual Basic のShared ) メンバーはいずれもスレッド セーフです。インスタンス メンバーはスレッド セーフになるという保証はありません。

関連項目

参照先

WorkflowAssociation メンバー

Microsoft.SharePoint.Client.Workflow 名前空間