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

属性值

一个 string 包含密钥的键。

例外

SetSessionKey(HttpSessionState)尚未调用该方法。

注解

某些设备不允许元素中的内联样式,但需要从链接样式表提供样式信息。 如果链接的样式表存储在该 Session目录中,则 URL 包含一个唯 SessionKey 一标识要返回的样式表。 对于这些目标设备,将XhtmlMobileTextWriter样式信息从呈现的控件移动到样式表以供缓存。Session

页面适配器可以指示 XhtmlMobileTextWriter 在呈现页面之前将样式表 Session 保存在 using SetSessionKeyCache using SetCacheKey 中。

此属性主要由自定义移动页面和控件适配器的开发人员使用。

适用于

另请参阅