다음을 통해 공유


DocumentId.SetProvider Method

Sets a new DocumentIdProvider value for the specified SPSite object.

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

Syntax

'Declaration
Public Shared Sub SetProvider ( _
    site As SPSite, _
    iProvider As DocumentIdProvider _
)
'Usage
Dim site As SPSite
Dim iProvider As DocumentIdProviderDocumentId.SetProvider(site, iProvider)
public static void SetProvider(
    SPSite site,
    DocumentIdProvider iProvider
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Either the SPSite object value or the value of the new iProvider parameter is set to a null reference (Nothing in Visual Basic).

See Also

Reference

DocumentId Class

DocumentId Members

Microsoft.Office.DocumentManagement Namespace