次の方法で共有


ServicePointManager.DefaultPersistentConnectionLimit フィールド

定義

HTTP/1.1 以降のサーバーに接続されている ServicePoint オブジェクトで許可される既定の永続的接続数 (2)。 このフィールドは定数であり、DefaultConnectionLimit プロパティの値が直接または構成によって設定されていない場合に、DefaultConnectionLimit プロパティを初期化するために使用されます。

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

フィールド値

Value = 2

次のコード例では、このフィールドを使用して DefaultConnectionLimit プロパティを設定します。

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

適用対象