DocumentId.GetProvider Method
SharePoint 2010
Gets the value of the DocumentIdProvider object for a specified SPSite object.
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Parameters
- site
- Type: Microsoft.SharePoint.SPSite
SPSite object from which to get the DocumentIdProvider value.
Return Value
Type: Microsoft.Office.DocumentManagement.DocumentIdProviderA 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. |