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)
Syntax
'Declaration
Public Shared Function GetProvider ( _
site As SPSite _
) As DocumentIdProvider
'Usage
Dim site As SPSite
Dim returnValue As DocumentIdProvider
returnValue = DocumentId.GetProvider(site)
public static DocumentIdProvider GetProvider(
SPSite site
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteSPSite 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.
Exceptions
Exception | Condition |
---|---|
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. |
See Also
Reference
Microsoft.Office.DocumentManagement Namespace