Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
site
Type: Microsoft.SharePoint.SPSiteSPSite collection that is checked
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). |