←Select platform

NewCacheId Method

Summary

Generates a new document unique ID.

Syntax
C#
C++/CLI
Python
public static string NewCacheId() 
public:  
   static String^ NewCacheId() 
def NewCacheId(self): 

Return Value

Unique document ID. This is in the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

Remarks

All DocumentFactory methods that load or create a new document require a unique identifier for the document that will eventually be set in LEADDocument.DocumentId. This identifier can be passed by the user (for instance, in LoadDocumentOptions.DocumentId and CreateDocumentOptions.UserId) or if the default of null is used, then the factory calls NewCacheId to generate a new random unique ID and uses it.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.