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

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

ServicePointManager.DefaultConnectionLimit プロパティ

ServicePoint オブジェクト許可される同時接続最大数を取得または設定します

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

Public Shared Property DefaultConnectionLimit
 As Integer
Dim value As Integer

value = ServicePointManager.DefaultConnectionLimit

ServicePointManager.DefaultConnectionLimit = value
public static int DefaultConnectionLimit
 { get; set; }
public:
static property int DefaultConnectionLimit
 {
    int get ();
    void set (int value);
}
/** @property */
public static int get_DefaultConnectionLimit
 ()

/** @property */
public static void set_DefaultConnectionLimit
 (int value)
public static function get
 DefaultConnectionLimit () : int

public static function set
 DefaultConnectionLimit (value : int)

プロパティ
ServicePoint オブジェクト許可されている同時接続最大数。既定値は、2 です。

例外例外
例外種類条件

ArgumentOutOfRangeException

DefaultConnectionLimit が 0 以下です。

解説解説

DefaultConnectionLimit プロパティは、ServicePoint オブジェクトの作成時に ServicePointManager オブジェクトが ConnectionLimit プロパティ割り当てる同時接続既定最大数を設定します

DefaultConnectionLimit プロパティ変更しても、既存ServicePoint オブジェクトには影響しません。変更の後に初期化された ServicePoint オブジェクトだけに影響します。このプロパティの値が直接設定されず、構成によっても設定されていない場合、値は既定定数値 DefaultPersistentConnectionLimit になります

メモメモ

DefaultConnectionLimit プロパティ加えられ変更は、HTTP 1.0 接続HTTP 1.1 接続両方影響しますHTTP 1.0 プロトコルHTTP 1.1 プロトコル接続限度別々に変更することはできません。サーバー環境 (ASP.NET) で使用した場合DefaultConnectionLimit既定で多い方の接続数、つまり 10なります

使用例使用例

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

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);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServicePointManager クラス
ServicePointManager メンバ
System.Net 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS