ConnectionManagementElement 构造函数

定义

初始化 ConnectionManagementElement 类的新实例。Initializes a new instance of the ConnectionManagementElement class.

重载

ConnectionManagementElement()

初始化 ConnectionManagementElement 类的新实例。Initializes a new instance of the ConnectionManagementElement class.

ConnectionManagementElement(String, Int32)

用指定的地址和连接限制信息初始化 ConnectionManagementElement 类的新实例。Initializes a new instance of the ConnectionManagementElement class with the specified address and connection limit information.

ConnectionManagementElement()

初始化 ConnectionManagementElement 类的新实例。Initializes a new instance of the ConnectionManagementElement class.

public:
 ConnectionManagementElement();
public ConnectionManagementElement ();
Public Sub New ()

另请参阅

适用于

产品 Introduced

ConnectionManagementElement(String, Int32)

用指定的地址和连接限制信息初始化 ConnectionManagementElement 类的新实例。Initializes a new instance of the ConnectionManagementElement class with the specified address and connection limit information.

public:
 ConnectionManagementElement(System::String ^ address, int maxConnection);
public ConnectionManagementElement (string address, int maxConnection);
new System.Net.Configuration.ConnectionManagementElement : string * int -> System.Net.Configuration.ConnectionManagementElement
Public Sub New (address As String, maxConnection As Integer)

参数

address
String

一个字符串,它标识远程计算机的地址。A string that identifies the address of a remote computer.

maxConnection
Int32

一个整数,它标识所允许的从本地计算机到 address 的最大连接数。An integer that identifies the maximum number of connections allowed to address from the local computer.

注解

此构造函数将 Address 属性设置为 address ,并将 MaxConnection 属性设置为 maxConnectionThis constructor sets the Address property to address and the MaxConnection property to maxConnection.

另请参阅

适用于

产品 Introduced