HttpListenerRequest.IsAuthenticated プロパティ
アセンブリ: System (system.dll 内)

クライアントが認証されている場合は true。それ以外の場合は false。

アプリケーションで、AuthenticationSchemes プロパティまたは AuthenticationSchemeSelectorDelegate プロパティを使用してクライアント認証を要求します。
アプリケーションは、正常に認証されていないクライアントからの要求に対する HttpListenerContext を受信しません。

IsAuthenticated プロパティの値を表示するコード例を次に示します。
public static void ShowRequestProperties2 (HttpListenerRequest request) { Console.WriteLine("KeepAlive: {0}", request.KeepAlive); Console.WriteLine("Local end point: {0}", request.LocalEndPoint.ToString()); Console.WriteLine("Remote end point: {0}", request.RemoteEndPoint.ToString()); Console.WriteLine("Is local? {0}", request.IsLocal); Console.WriteLine("HTTP method: {0}", request.HttpMethod); Console.WriteLine("Protocol version: {0}", request.ProtocolVersion); Console.WriteLine("Is authenticated: {0}", request.IsAuthenticated); Console.WriteLine("Is secure: {0}", request.IsSecureConnection); }

Windows 98, Windows Server 2003, Windows XP Media Center Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHttpListenerRequest.IsAuthenticated プロパティを検索する場合は、下記のリンクをクリックしてください。

- HttpListenerRequest.IsAuthenticated プロパティのページへのリンク