SPContentType.UpdateWorkflowAssociationsOnChildren 方法 (Boolean)

将传播到从该内容类型派生的内容类型以及此内容类型应用于列表的实例的此内容类型的工作流关联中的更改。(可选) 标记为已更改涉及的操作的对象。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub UpdateWorkflowAssociationsOnChildren ( _
    bGenerateFullChangeList As Boolean _
)
用法
Dim instance As SPContentType
Dim bGenerateFullChangeList As Boolean

instance.UpdateWorkflowAssociationsOnChildren(bGenerateFullChangeList)
public void UpdateWorkflowAssociationsOnChildren(
    bool bGenerateFullChangeList
)

参数

  • bGenerateFullChangeList
    类型:System.Boolean

    true标记为已更改 ; 此操作涉及的所有SPContentType对象否则为false。

异常

异常 条件
SPContentTypeSealedException

此内容类型的子级的Sealed属性的值为true。

SPContentTypeReadOnlyException

此内容类型的子级的ReadOnly属性的值为true。

备注

此方法调用与bGenerateFullChangeList、 true、 true和trueUpdateWorkflowAssociationsOnChildren(Boolean, Boolean, Boolean, Boolean)

此方法将传播父内容类型的工作流关联到所有派生并列出可找到内容类型的范围内的内容类型的版本中的更改。如果您将false作为参数传递给bGenerateFullChangeList参数时,涉及的此操作的SPContentType对象没有标记为已更改,并不会引发OnChanged事件。如果所做的更改不能写入任何子内容类型,因为它标记为密封或只读的将引发异常。

另请参阅

引用

SPContentType 类

SPContentType 成员

UpdateWorkflowAssociationsOnChildren 重载

Microsoft.SharePoint 命名空间

AddWorkflowAssociation

其他资源

Introduction to Workflows in Windows SharePoint Services

Workflow Stages