Export (0) Print
Expand All

ServicePointManager Class

Manages the collection of ServicePoint objects.

System.Object
  System.Net.ServicePointManager

Namespace:  System.Net
Assembly:  System (in System.dll)

type ServicePointManager =  class end

The ServicePointManager type exposes the following members.

  NameDescription
Public propertyStatic memberCertificatePolicy Obsolete. Gets or sets policy for server certificates.
Public propertyStatic memberCheckCertificateRevocationListGets or sets a Boolean value that indicates whether the certificate is checked against the certificate authority revocation list.
Public propertyStatic memberDefaultConnectionLimitGets or sets the maximum number of concurrent connections allowed by a ServicePoint object.
Public propertyStatic memberDnsRefreshTimeoutGets or sets a value that indicates how long a Domain Name Service (DNS) resolution is considered valid.
Public propertyStatic memberEnableDnsRoundRobinGets or sets a value that indicates whether a Domain Name Service (DNS) resolution rotates among the applicable Internet Protocol (IP) addresses.
Public propertyStatic memberEncryptionPolicyGets the System.Net.Security.EncryptionPolicy for this ServicePointManager instance.
Public propertyStatic memberExpect100ContinueGets or sets a Boolean value that determines whether 100-Continue behavior is used.
Public propertyStatic memberMaxServicePointIdleTimeGets or sets the maximum idle time of a ServicePoint object.
Public propertyStatic memberMaxServicePointsGets or sets the maximum number of ServicePoint objects to maintain at any time.
Public propertyStatic memberSecurityProtocolGets or sets the security protocol used by the ServicePoint objects managed by the ServicePointManager object.
Public propertyStatic memberServerCertificateValidationCallbackGets or sets the callback to validate a server certificate.
Public propertyStatic memberUseNagleAlgorithmDetermines whether the Nagle algorithm is used by the service points managed by this ServicePointManager object.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFindServicePoint(Uri)Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uri object.
Public methodStatic memberFindServicePoint(String, IWebProxy)Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uniform Resource Identifier (URI).
Public methodStatic memberFindServicePoint(Uri, IWebProxy)Finds an existing ServicePoint object or creates a new ServicePoint object to manage communications with the specified Uri object.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSetTcpKeepAliveEnables or disables the keep-alive option on a TCP connection.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberDefaultNonPersistentConnectionLimitThe 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.
Public fieldStatic memberDefaultPersistentConnectionLimitThe 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.
Top

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft