SPContentType.UpdateWorkflowAssociation method
NOTE: This API is now obsolete.
使用WorkflowAssociations的.Update方法。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use WorkflowAssociations.Update() instead")> _
Public Sub UpdateWorkflowAssociation ( _
workflowAssociation As SPWorkflowAssociation _
)
'用途
Dim instance As SPContentType
Dim workflowAssociation As SPWorkflowAssociation
instance.UpdateWorkflowAssociation(workflowAssociation)
[ObsoleteAttribute("Use WorkflowAssociations.Update() instead")]
public void UpdateWorkflowAssociation(
SPWorkflowAssociation workflowAssociation
)
參數
workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation已更新的工作流程關聯。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | SPWorkflowAssociation物件是a null reference (Nothing in Visual Basic)。 |
備註
如果您要更新的工作流程關聯不存在的內容型別集合中,這個方法沒有作用。您可以藉由呼叫GetAssociationByName方法來測試關聯存在。如果該方法的傳回值是a null reference (Nothing in Visual Basic),然後關聯不在集合中。