XhtmlMobileTextWriter.CacheKey Property

Note: This property is new in the .NET Framework version 2.0.

Gets the unique key used to retrieve items from the Cache.

Namespace: System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
virtual property String^ CacheKey {
	String^ get ();
}
/** @property */
public String get_CacheKey ()

public function get CacheKey () : String

Property Value

A string containing a unique key.

Exception typeCondition

Exception

The SetCacheKey method has not been called.

Some devices do not allow inline styles in elements, but require style information 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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: