XhtmlMobileTextWriter.CacheKey Property

Definition

Gets the unique key used to retrieve items from the Cache. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public virtual string CacheKey { get; }

Property Value

A string containing a unique key.

Exceptions

The SetCacheKey(Cache) method has not been called.

Remarks

Some devices do not allow inline styles in elements, but require style information to be provided from a linked style sheet. If the linked style sheet is stored in the Cache, the URL contains a unique CacheKey that identifies the style sheet to return. For these target devices, the XhtmlMobileTextWriter moves style information from rendered controls to a style sheet for caching.

A page adapter can instruct the XhtmlMobileTextWriter to save the style sheet in the Cache using SetCacheKey, or in the Session using SetSessionKey before rendering the page.

This property is used primarily by developers of custom mobile page and control adapters.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also