This topic has not yet been rated - Rate this topic

DocumentIdProvider.GenerateDocumentId Method

SharePoint 2010

Generates a document ID when provided with a list item parameter that corresponds to a document.

Namespace:  Microsoft.Office.DocumentManagement
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
public abstract string GenerateDocumentId(
	SPListItem listItem
)

Parameters

listItem
Type: Microsoft.SharePoint.SPListItem
An SPListItem object that specifies the item for which a document ID must be generated.

Return Value

Type: System.String
A string that represents the newly generated Document ID.

It is highly recomended that the Document ID generator provides IDs that are both unique and readily type-able by user.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ