Name

ServicePointManager

Synopsis

This class is responsible for managing ServicePoint instances. As your applications make HTTP connections to network resources, this class is working behind the scenes to maintain the connections. When your application makes many connections to the same server, this class eliminates the overhead of making a new connection each time you connect.

The ServicePointManager also sets the default certificate policy for new connections. In most cases, the default certificate policy should suit your needs. If you need to change it, see ICertificatePolicy for more details.

Public Class ServicePointManager
                  ' Public Shared Fields
   Public const DefaultNonPersistentConnectionLimit As Integer    // =4
   Public const DefaultPersistentConnectionLimit As Integer      // =2
                  ' Public Shared Properties
   Public Shared Property CertificatePolicy As ICertificatePolicy  
   Public Shared Property DefaultConnectionLimit As Integer  
   Public Shared Property MaxServicePointIdleTime As Integer  
   Public Shared Property MaxServicePoints As Integer  
' Public Shared Methods
   Public Shared Function FindServicePoint(
        ByVal uriString As String, 
        ByVal proxy As IWebProxy) As ServicePoint  
   Public Shared Function FindServicePoint(
        ByVal address As Uri) As ServicePoint  
   Public Shared Function FindServicePoint(
        ByVal address As Uri, 
        ByVal proxy As IWebProxy) As ServicePoint  
End Class

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.