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

TCP 接続が SSL を使用している場合は true。それ以外の場合は false。

セキュリティで保護された接続を要求するには、クライアント要求で UriSchemeHttp の代わりに UriSchemeHttps を使用します。SSL を使用して接続を確立できない場合、エラーに関する情報を提供する WebException がクライアントに送信されます。

IsSecureConnection プロパティを使用したコード例を次に示します。
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.IsSecureConnection プロパティを検索する場合は、下記のリンクをクリックしてください。

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