DocumentId.IsFeatureEnabled Method

Gets the feature status in the specified SPSite collection.

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

Syntax

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

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

Parameters

Return Value

Type: System.Boolean
true if the Document ID feature is enabled; otherwise false.

Exceptions

Exception Condition
ArgumentNullException

SPSite is set to a null reference (Nothing in Visual Basic).

ArgumentException

Site Features collection is set to a null reference (Nothing in Visual Basic).

See Also

Reference

DocumentId Class

DocumentId Members

Microsoft.Office.DocumentManagement Namespace