HttpListener.IgnoreWriteExceptions プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpListener.IgnoreWriteExceptions プロパティの意味・解説 

HttpListener.IgnoreWriteExceptions プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

HttpListener がクライアント応答送信したときに発生する例外アプリケーション受信するかどうか指定する Boolean 値を取得または設定します

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

Public Property IgnoreWriteExceptions As
 Boolean
Dim instance As HttpListener
Dim value As Boolean

value = instance.IgnoreWriteExceptions

instance.IgnoreWriteExceptions = value
public bool IgnoreWriteExceptions { get;
 set; }
public:
property bool IgnoreWriteExceptions {
    bool get ();
    void set (bool 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 です。

例外例外
例外種類条件

ObjectDisposedException

このオブジェクト閉じられています。

解説解説
使用例使用例

このプロパティ設定するコード例次に示します

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();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

HttpListener.IgnoreWriteExceptions プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpListener.IgnoreWriteExceptions プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS