Share via


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;
ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit

적용 대상