←Select platform

DocumentId Property

Summary

The ID to be used for the created document.

Syntax
C#
VB
C++
public string DocumentId {get; set;} 
Public Property DocumentId() As String 
   Get 
   Set 
public:  
   property String^ DocumentId 
   { 
      String^ get() 
      void set(String^ value) 
   } 

Property Value

String that specifies the ID to be used with the created document. The default value is null.

Remarks

When the value of DocumentId is null (the default), then the document factory will create a new unique ID using a GUID generator (DocumentFactory.NewCacheId). If the value is not null, then it is assumed to be a user-defined ID and used as is. In either case, the value is set in the LEADDocument.DocumentId property of the newly created document.

User-defined IDs can be used when the system already has unique IDs associated with the documents to be viewed. The document factory will neither check nor guarantee the uniqueness of these IDs.

Example

For an example, refer to LEADDocument.Clone.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.