ConnectionPool Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a connection pool. Each pool is identified by a destination tuple that consists of the hostname, the listening port of that host, and the transport type (TCP or TLS). The pool consists of 0 or more connections at any time and can grow to a maximum number of connections set by the application. The connection pool only represents outgoing connections and is not used to represent incoming connections as they are not used for pooling.
public ref class ConnectionPool
public class ConnectionPool
type ConnectionPool = class
Public Class ConnectionPool
- Inheritance
-
ConnectionPool
Properties
ConnectionManager |
Gets the connection manager for this pool. |
Count |
Get the number of connections currently in the pool. |
HostName |
Gets the host name for this pool. |
MaximumNumberOfConnections |
Gets or sets the pool size. This indicates the maximum number of connections desired in the pool. |
Port |
Gets the remote port. |
ProtocolName |
Gets the protocol, TCP or TLS. |
Methods
GetConnections() |
Gets the list of connections currently in this connection pool. |
ToString() |
Converts to a string representation of the instance. |
Events
ConnectionAdded |
Raised when the connection is added to the pool. |
ConnectionRemoved |
Raised when the connection is removed from the pool. |