이 페이지가 유용했습니까?
이 콘텐츠에 대한 여러분의 의견은 중요합니다. 의견을 알려주십시오.
추가 의견
1500자 남음
MSDN Library
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

SPList.AddWorkflowAssociation method

NOTE: This API is now obsolete.

Adds a workflow association to the list.

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

[ObsoleteAttribute("Use WorkflowAssociations.Add() instead")]
public SPWorkflowAssociation AddWorkflowAssociation(
	SPWorkflowAssociation workflowAssociation
)

Parameters

workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation

An SPWorkflowAssociation object that represents the workflow.

Return value

Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
The workflow association that was added.

ExceptionCondition
ArgumentNullException

The argument passed to the workflowAssociation parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The IsDeclarative property on the workflow association is true, but user-defined workflows are not enabled for this Web application. For more information, see the UserDefinedWorkflowsEnabled property.

The workflow association references a task list or a history list that is not on the same Web site as the list to which the workflow association is added.

The workflow association is not valid—for example, if the Name property is a null reference (Nothing in Visual Basic).

표시:
© 2015 Microsoft