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)


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

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


Return Value

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


Exception Condition

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

See Also


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)