Editare

Partajați prin


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 property System::String ^ CacheKey { System::String ^ get(); };
public virtual string CacheKey { get; }
member this.CacheKey : string
Public Overridable ReadOnly Property CacheKey As String

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

See also