語言

XhtmlMobileTextWriter.SessionKey 屬性

定義

取得用來從 中取回物品 Session的金鑰。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public:
 virtual property System::String ^ SessionKey { System::String ^ get(); };
public virtual string SessionKey { get; }
member this.SessionKey : string
Public Overridable ReadOnly Property SessionKey As String

屬性值

A string 裡面有鑰匙。

例外狀況

SetSessionKey(HttpSessionState)該方法尚未被調用。

備註

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

頁面介面可以指示在XhtmlMobileTextWriter使用Session時儲存樣式表SetSessionKey,或CacheSetCacheKey在渲染頁面前儲存。

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

適用於

另請參閱