SessionStateUtility.IsSessionStateRequired(HttpContext) SessionStateUtility.IsSessionStateRequired(HttpContext) SessionStateUtility.IsSessionStateRequired(HttpContext) SessionStateUtility.IsSessionStateRequired(HttpContext) Method

Définition

Obtient une valeur qui indique si l’état de la session est nécessaire pour l’objet HttpContext spécifié.Gets a value which indicates whether the session state is required for the specified HttpContext.

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

Paramètres

context
HttpContext HttpContext HttpContext HttpContext

Spécifie l’élément HttpContext à vérifier.Specifies the HttpContext to check.

Retours

true si l’état de la session est nécessaire ; sinon, false.true if the session state is required; otherwise, false.

S’applique à