Share via


XhtmlMobileTextWriter.SessionKey 屬性

定義

取得索引鍵,用於擷取來自 Session 的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

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

屬性值

string,包含索引鍵。

例外狀況

備註

某些裝置不允許元素中的內嵌樣式,但需要從連結的樣式表單提供樣式資訊。 如果鏈接的樣式表單儲存在 中 Session,則URL包含唯 SessionKey 一的 ,可識別要傳回的樣式表單。 針對這些目標裝置,會將 XhtmlMobileTextWriter 樣式資訊從轉譯的控件移至樣式表單,以在 中 Session快取。

頁面配接器可以指示 將 XhtmlMobileTextWriter 樣式表單儲存在使用 SessionSetSessionKey中,或在 Cache 使用 SetCacheKey 中,再轉譯頁面。

此屬性主要是由自定義行動頁面和控制配接器的開發人員使用。

適用於

另請參閱