Export (0) Print
Expand All

DocumentId.GetProvider method

Gets the value of the DocumentIdProvider object for a specified SPSite object.

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

public static DocumentIdProvider GetProvider(
	SPSite site
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

SPSite object from which to get the DocumentIdProvider value.

Return value

Type: Microsoft.Office.DocumentManagement.DocumentIdProvider
A DocumentIdProvider object for the specified SPSite object, or a null reference (Nothing in Visual Basic) if no object of that type is returned.

ExceptionCondition
ArgumentNullException

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

NullReferenceException

There was a problem loading a custom provider.

SEHException

There was a problem loading a custom provider.

Show:
© 2014 Microsoft