XhtmlMobileTextWriter::CacheKey Property

 

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 the www.asp.net/mobile Web site.

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

public:
property String^ CacheKey {
	virtual String^ get();
}

Property Value

Type: System::String^

A string containing a unique key.

Exception Condition
Exception

The SetCacheKey method has not been called.

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.

.NET Framework
Available since 2.0
Return to top
Show: