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
site
Type: Microsoft.SharePoint.SPSiteDocumentIdProvider object that is the provider of DocumentId objects for the SPSite object
iProvider
Type: Microsoft.Office.DocumentManagement.DocumentIdProviderSPSite object on which to set the iProvider parameter value
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). |