DocumentId.IsAssignmentEnabled method (SPSite)

Determines whether the DocumentId object assignment is enabled on a SPSite object.

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

Syntax

'Declaration
Public Shared Function IsAssignmentEnabled ( _
    site As SPSite _
) As Boolean
'Usage
Dim site As SPSite
Dim returnValue As Boolean

returnValue = DocumentId.IsAssignmentEnabled(site)
public static bool IsAssignmentEnabled(
    SPSite site
)

Parameters

Return value

Type: System.Boolean
true if assignment is enabled; otherwise false.

Exceptions

Exception Condition
ArgumentException

SPSite object orthe properties of its root SPWeb properties are set to a null reference (Nothing in Visual Basic).

See also

Reference

DocumentId class

DocumentId members

IsAssignmentEnabled overload

Microsoft.Office.DocumentManagement namespace

EnableAssignment(SPSite, Boolean)

EnableAssignment(SPSite, Boolean, Boolean, Boolean)

EnableAssignment(SPSite, String, Boolean, Boolean, Boolean, Boolean)