Bagikan melalui


CacheKey Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets a cache key string that is used as a part of a cache key when caching query results.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property CacheKey As String
'Usage
Dim instance As CommonSearchOptions
Dim value As String

value = instance.CacheKey
public virtual string CacheKey { get; }
public:
virtual property String^ CacheKey {
    String^ get ();
}
public function get CacheKey () : String

Property Value

Type: System..::.String
The current search options.

Remarks

Commerce Server returns the same cache key if the settings are the same for all relevant properties. The site can create a SearchOptions and store the key for reuse. Therefore, CacheKey recomputes the key only when a search option changes.

Permissions

See Also

Reference

CommonSearchOptions Class

CommonSearchOptions Members

Microsoft.CommerceServer.Catalog Namespace