CacheKeysGetResourceKey Method
Returns unique identifier for the cache entry that represents Resource object.

Namespace: GroupDocs.Viewer.Caching
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.9
Syntax
public static string GetResourceKey(
	int pageNumber,
	Resource resource
)

Parameters

pageNumber
Type: SystemInt32
The number of the page.
resource
Type: GroupDocs.Viewer.ResultsResource
The HTML resource.

Return Value

Type: String
Unique identifier for the cache entry that represents Resource object.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when pageNumber is less or equal to zero.
ArgumentNullExceptionThrown when resource is null.
See Also