Share via


DocumentSet.Provision method (Boolean)

Updates the schema of the document set item and its parent list.

Namespace:  Microsoft.Office.DocumentManagement.DocumentSets
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Sub Provision ( _
    bProvisionDefaultContent As Boolean _
)
'Usage
Dim instance As DocumentSet
Dim bProvisionDefaultContent As Boolean

instance.Provision(bProvisionDefaultContent)
public void Provision(
    bool bProvisionDefaultContent
)

Parameters

  • bProvisionDefaultContent
    Type: System.Boolean

    true if the default documents for the content type will be added to the document set as part of provisioning. If the documents already exist, then an exception is thrown.

Exceptions

Exception Condition
SPException

A file with a name equal to one of the default documents already exists in the document set.

Remarks

This method updates the document set item with any changes made to allowed content types for its content type. It also adds the newly added content types to the list so that they are allowed in it.

See also

Reference

DocumentSet class

DocumentSet members

Provision overload

Microsoft.Office.DocumentManagement.DocumentSets namespace