This topic has not yet been rated - Rate this topic

DocumentId Class

SharePoint 2010

Represents a Document ID.

System.Object
  Microsoft.Office.DocumentManagement.DocumentId

Namespace:  Microsoft.Office.DocumentManagement
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class DocumentId

Contains methods that enable or disable the capability to assign Document IDs to query Document ID feature and assignment status, and to query and set Document ID providers.

Provides methods for assigning Document Ids to documents, and provides methods to use lookup and search to get documents by their Document ID.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Insert Document ID in Word documents
Once a Word document has been saved and given a Document Id, this document id can be inserted in the document text by using Quick Parts. But if your organization is using Word document templates, the Document ID can be inserted automatically in all documents based on those templates. Details in this blog post: http://devramblings.wordpress.com/2011/04/10/insert-sharepoint-2010-document-id-in-a-word-document/