←Select platform

HasDocument Method

Summary

Indicates whether an entry associated with the specified document exists.

Syntax
C#
VB
C++
public bool HasDocument( 
   string documentId, 
   bool updateExpiry 
) 
Public Function HasDocument( 
   ByVal documentId As String, 
   ByVal updateExpiry As Boolean 
) As Boolean 
public:  
   bool HasDocument( 
      String^ documentId, 
      bool updateExpiry 
   ) 

Parameters

documentId

Document ID.

updateExpiry

Touches the item by updating its expiry policy.

Return Value

true if the memory cache has an entry associated with documentId; otherwise, false.

Remarks

If updateExpiry is true and the cache contains an entry associated with documentId, then the item expiry will be extended by another DocumentMemoryCacheStartOptions.SlidingExpiration.

Refer to DocumentMemoryCache for more information.

Example

For an example, refer to DocumentMemoryCache.

Requirements

Target Platforms

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

Leadtools.Document Assembly