SessionAuthenticationModule.ContainsSessionTokenCookie 方法

定义

确定指定的会话cookie是否在指定的cookie集合中。

public:
 bool ContainsSessionTokenCookie(System::Web::HttpCookieCollection ^ httpCookieCollection);
public bool ContainsSessionTokenCookie (System.Web.HttpCookieCollection httpCookieCollection);
member this.ContainsSessionTokenCookie : System.Web.HttpCookieCollection -> bool
Public Function ContainsSessionTokenCookie (httpCookieCollection As HttpCookieCollection) As Boolean

参数

httpCookieCollection
HttpCookieCollection

要在其中搜索的 cookies 集合。

返回

如果找到一个会话 cookie,则为 true;否则为 false

例外

httpCookieCollectionnull

适用于