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 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



ServicePointManager.DefaultConnectionLimit プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS