語言

XhtmlMobileTextWriter.CacheKey 屬性

定義

取得用來從 中取回物品 Cache的唯一金鑰。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &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

屬性值

A string 包含唯一鍵。

例外狀況

SetCacheKey(Cache)該方法尚未被調用。

備註

有些裝置不允許元素內嵌樣式,但要求從連結的樣式表提供樣式資訊。 如果連結的樣式表儲存在 Cache,該網址包含唯一 CacheKey 識別要回傳樣式表的樣式表。 對於這些目標裝置,樣 XhtmlMobileTextWriter 式資訊會從渲染的控制項轉移到樣式表以進行快取。

頁面介面可以指示在XhtmlMobileTextWriter使用Cache時儲存樣式表SetCacheKey,或SessionSetSessionKey在渲染頁面前儲存。

此特性主要用於自訂行動頁面與控制轉接器的開發者。

適用於

另請參閱