다음을 통해 공유


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

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

DocumentId Class

DocumentId Members

Microsoft.Office.DocumentManagement Namespace

SetDefaultProvider(SPSite)

SetProvider(SPSite, DocumentIdProvider)

DocumentIdProvider