Export (0) Print
Expand All

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)

public static void SetProvider(
	SPSite site,
	DocumentIdProvider iProvider
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

DocumentIdProvider object that is the provider of DocumentId objects for the SPSite object

iProvider
Type: Microsoft.Office.DocumentManagement.DocumentIdProvider

SPSite object on which to set the iProvider parameter value

ExceptionCondition
ArgumentNullException

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

Show:
© 2015 Microsoft