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

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

ServicePointManager.Expect100Continue プロパティ

100-Continue 動作使用するかどうか決定する Boolean 値を取得または設定します

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

Public Shared Property Expect100Continue
 As Boolean
Dim value As Boolean

value = ServicePointManager.Expect100Continue

ServicePointManager.Expect100Continue = value
public static bool Expect100Continue
 { get; set; }
public:
static property bool Expect100Continue {
    bool get ();
    void set (bool value);
}
/** @property */
public static boolean get_Expect100Continue
 ()

/** @property */
public static void set_Expect100Continue
 (boolean value)
public static function get
 Expect100Continue () : boolean

public static function set
 Expect100Continue (value : boolean)

プロパティ
POST 要求に対して 100-Continue 応答期待する場合trueそれ以外場合false既定値true です。

解説解説

このプロパティtrue設定した場合POST メソッド使用するクライアント要求は、サーバーから 100-Continue 応答送信されるまで待機しポストするデータ送信はその応答の後に行われます。これにより、サーバー要求ヘッダー基づいて要求拒否する場合に、大量データクライアントからネットワーク通じて無駄に送信されることを避けることができます

たとえば、Expect100Continue プロパティfalse にしたとしますその場合、サーバー要求送信される際には、データ一緒に送信されます。要求ヘッダー読み取られた後、サーバー認証要求し401 応答送信した場合クライアント適切な認証ヘッダー付けてデータ再送信する必要があります

一方、このプロパティtrue である場合は、まず要求ヘッダーだけがサーバー送信されます。サーバー要求拒否しなければ100-Continue 応答によってデータ送信許可されます。前述例のように、サーバーによって認証要求され401 応答返され場合でも、その時点ではデータはまだクライアントから送信されていないので、無駄な通信発生しません。

このプロパティの値を変更しても、既存ServicePoint オブジェクトには影響しません。変更後作成され新しServicePoint オブジェクトだけに影響します

Expect 100-Continue 機能の詳細については、IETF RFC 2616 Section 10.1.1 を参照してください

使用例使用例

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

ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit
ServicePointManager.UseNagleAlgorithm = true;
ServicePointManager.Expect100Continue = true;
ServicePointManager.CheckCertificateRevocationList = true;
ServicePointManager.DefaultConnectionLimit = ServicePointManager.DefaultPersistentConnectionLimit;
ServicePointManager::UseNagleAlgorithm = true;
ServicePointManager::Expect100Continue = true;
ServicePointManager::CheckCertificateRevocationList = true;
ServicePointManager::DefaultConnectionLimit = ServicePointManager::DefaultPersistentConnectionLimit;

ServicePointManager.set_UseNagleAlgorithm(true);
ServicePointManager.set_Expect100Continue(true);
ServicePointManager.set_CheckCertificateRevocationList(true);
ServicePointManager.set_DefaultConnectionLimit(
    ServicePointManager.DefaultPersistentConnectionLimit);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServicePointManager クラス
ServicePointManager メンバ
System.Net 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からServicePointManager.Expect100Continue プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からServicePointManager.Expect100Continue プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からServicePointManager.Expect100Continue プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「ServicePointManager.Expect100Continue プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS