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)

public static bool IsFeatureEnabled(
	SPSite site
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

SPSite collection that is checked

Return value

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

ExceptionCondition
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).

Show: