SessionStateUtility.IsSessionStateReadOnly(HttpContext) 方法

定義

取得值,這個值指出指定 HttpContext 的工作階段狀態是否為唯讀。Gets a value which indicates whether the session state is read-only for the specified HttpContext.

public:
 static bool IsSessionStateReadOnly(System::Web::HttpContext ^ context);
public static bool IsSessionStateReadOnly (System.Web.HttpContext context);
static member IsSessionStateReadOnly : System.Web.HttpContext -> bool
Public Shared Function IsSessionStateReadOnly (context As HttpContext) As Boolean

參數

context
HttpContext

指定要檢查的 HttpContextSpecifies the HttpContext to check.

傳回

Boolean

如果工作階段狀態為唯讀,則為 true;否則為 falsetrue if the session state is read-only; otherwise, false.

適用於