GetResourceKey

CacheKeys.GetResourceKey method

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

public static string GetResourceKey(int pageNumber, Resource resource)
Parameter Type Description
pageNumber Int32 The number of the page.
resource Resource The HTML resource.

Return Value

Unique identifier for the cache entry that represents Resource object.

Exceptions

exception condition
ArgumentException Thrown when pageNumber is less or equal to zero.
ArgumentNullException Thrown when resource is null.

See Also