ServicePointManager Class
Manages the collection of ServicePoint objects.
Assembly: System (in System.dll)
The ServicePointManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | CertificatePolicy | Obsolete. Gets or sets policy for server certificates. |
![]() ![]() | CheckCertificateRevocationList | Gets or sets a Boolean value that indicates whether the certificate is checked against the certificate authority revocation list. |
![]() ![]() | DefaultConnectionLimit | Gets or sets the maximum number of concurrent connections allowed by a ServicePoint object. |
![]() ![]() | DnsRefreshTimeout | Gets or sets a value that indicates how long a Domain Name Service (DNS) resolution is considered valid. |
![]() ![]() | EnableDnsRoundRobin | Gets or sets a value that indicates whether a Domain Name Service (DNS) resolution rotates among the applicable Internet Protocol (IP) addresses. |
![]() ![]() | EncryptionPolicy | Gets the System.Net.Security.EncryptionPolicy for this ServicePointManager instance. |
![]() ![]() | Expect100Continue | Gets or sets a Boolean value that determines whether 100-Continue behavior is used. |
![]() ![]() | MaxServicePointIdleTime | Gets or sets the maximum idle time of a ServicePoint object. |
![]() ![]() | MaxServicePoints | Gets or sets the maximum number of ServicePoint objects to maintain at any time. |
![]() ![]() | SecurityProtocol | Gets or sets the security protocol used by the ServicePoint objects managed by the ServicePointManager object. |
![]() ![]() | ServerCertificateValidationCallback | Gets or sets the callback to validate a server certificate. |
![]() ![]() | UseNagleAlgorithm | Determines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FindServicePoint(Uri) | Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uri object. |
![]() ![]() | FindServicePoint(String, IWebProxy) | Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uniform Resource Identifier (URI). |
![]() ![]() | FindServicePoint(Uri, IWebProxy) | Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uri object. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | SetTcpKeepAlive | Enables or disables the keep-alive option on a TCP connection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | DefaultNonPersistentConnectionLimit | The default number of non-persistent connections (4) allowed on a ServicePoint object connected to an HTTP/1.0 or later server. This field is constant but is no longer used in the .NET Framework 2.0. |
![]() ![]() | DefaultPersistentConnectionLimit | The default number of persistent connections (2) allowed on a ServicePoint object connected to an HTTP/1.1 or later server. 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. |
ServicePointManager is a static class used to create, maintain, and delete instances of the ServicePoint class.
When an application requests a connection to an Internet resource Uniform Resource Identifier (URI) through the ServicePointManager object, the ServicePointManager returns a ServicePoint object that contains connection information for the host and scheme identified by the URI. If there is an existing ServicePoint object for that host and scheme, the ServicePointManager object returns the existing ServicePoint object; otherwise, the ServicePointManager object creates a new ServicePoint object.
The following code example creates a ServicePoint object for connections to the URI www.contoso.com.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




