HttpListenerPrefixCollection.Count プロパティ
アセンブリ: System (system.dll 内)
構文このコレクション内のプレフィックスの数を格納している Int32。
使用例コレクション内のプレフィックスを表示するコード例を次に示します。
static AuthenticationSchemes AuthenticationSchemeForClient(HttpListenerRequest request) { Console.WriteLine("Client authentication protocol selection in progress..."); // Do not authenticate local machine requests. if (request.RemoteEndPoint.Address.Equals (IPAddress.Loopback)) { return AuthenticationSchemes.None; } else { return AuthenticationSchemes.IntegratedWindowsAuthentication; } }
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- HttpListenerPrefixCollection.Count プロパティのページへのリンク