This topic has not yet been rated - Rate this topic

DocumentId.GetProvider Method

SharePoint 2010

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 null if no object of that type is returned.
Exception Condition
ArgumentNullException

SPSite object value is set to null.

NullReferenceException

There was a problem loading a custom provider.

SEHException

There was a problem loading a custom provider.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ