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



このプロパティを使用して、インスタンスの待機状態を確認するコード例を次に示します。
public static void DisplayPrefixesAndState(HttpListener listener) { // List the prefixes to which the server listens. HttpListenerPrefixCollection prefixes = listener.Prefixes; if (prefixes.Count == 0) { Console.WriteLine("There are no prefixes."); } foreach(string prefix in prefixes) { Console.WriteLine(prefix); } // Show the listening state. if (listener.IsListening) { Console.WriteLine("The server is listening."); } }

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


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

- HttpListener.IsListening プロパティのページへのリンク