ServicePointManager.DefaultPersistentConnectionLimit フィールド

定義

HTTP/1.1 以降のサーバーに接続される ServicePoint オブジェクトで許可する永続的な接続の既定の数 (2)。The default number of persistent connections (2) allowed on a ServicePoint object connected to an HTTP/1.1 or later server. このフィールドは定数であり、DefaultConnectionLimit プロパティの値が直接にも構成によっても設定されていない場合に DefaultConnectionLimit プロパティを初期化するために使用されます。This field is constant and is used to initialize the DefaultConnectionLimit property if the value of the DefaultConnectionLimit property has not been set either directly or through configuration.

public: int DefaultPersistentConnectionLimit = 10;
public const int DefaultPersistentConnectionLimit = 10;
val mutable DefaultPersistentConnectionLimit : int
Public Const DefaultPersistentConnectionLimit As Integer  = 10

フィールド値

次のコード例では、このフィールドを使用して DefaultConnectionLimit プロパティを設定します。The following code example sets the DefaultConnectionLimit property using this field.

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

適用対象