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

Dim instance As HttpListener Dim value As Boolean value = instance.IgnoreWriteExceptions instance.IgnoreWriteExceptions = value
/** @property */ public boolean get_IgnoreWriteExceptions () /** @property */ public void set_IgnoreWriteExceptions (boolean value)
public function get IgnoreWriteExceptions () : boolean public function set IgnoreWriteExceptions (value : boolean)
この HttpListener が、クライアントに応答を送信したときに発生する例外を返さない場合は true。それ以外の場合は false。既定値は false です。



public static void SimpleListenerWithUnsafeAuthentication(string[] prefixes) { // URI prefixes are required, // for example "http://contoso.com:8080/index/". if (prefixes == null || prefixes.Length == 0) throw new ArgumentException("prefixes"); // Set up a listener. HttpListener listener = new HttpListener(); foreach (string s in prefixes) { listener.Prefixes.Add(s); } listener.Start(); // Specify Negotiate as the authentication scheme. listener.AuthenticationSchemes = AuthenticationSchemes.Negotiate; // If NTLM is used, we will allow multiple requests on the same // connection to use the authentication information of first request. // This improves performance but does reduce the security of your // application. listener.UnsafeConnectionNtlmAuthentication = true; // This listener does not want to receive exceptions // that occur when sending the response to the client. listener.IgnoreWriteExceptions = true; Console.WriteLine("Listening..."); // ... process requests here. listener.Close(); }

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


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

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