NetPeerTcpBinding 建構函式

定義

初始化 NetPeerTcpBinding 類別的新執行個體。Initializes a new instance of the NetPeerTcpBinding class.

多載

NetPeerTcpBinding()

初始化 NetPeerTcpBinding 類別預設的新執行個體。Initializes a new default instance of the NetPeerTcpBinding class.

NetPeerTcpBinding(String)

使用指定的組態名稱,初始化 NetPeerTcpBinding 類別的新執行個體。Initializes a new instance of the NetPeerTcpBinding class with a specified configuration name.

NetPeerTcpBinding()

初始化 NetPeerTcpBinding 類別預設的新執行個體。Initializes a new default instance of the NetPeerTcpBinding class.

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

適用於

NetPeerTcpBinding(String)

使用指定的組態名稱,初始化 NetPeerTcpBinding 類別的新執行個體。Initializes a new instance of the NetPeerTcpBinding class with a specified configuration name.

public:
 NetPeerTcpBinding(System::String ^ configurationName);
public NetPeerTcpBinding (string configurationName);
new System.ServiceModel.NetPeerTcpBinding : string -> System.ServiceModel.NetPeerTcpBinding
Public Sub New (configurationName As String)

參數

configurationName
String

可識別繫結項目的 configurationName 屬性值,該項目的設定會用來初始化此繫結。The value of the configurationName attribute that identifies the binding element whose settings are used to initialize the binding.

例外狀況

組態無效。The configuration is invalid.

備註

這個建構函式會使用所提供的名稱建立新的 NetPeerTcpBindingThis constructor creates a new NetPeerTcpBinding with the supplied name. 如果這個名稱的組態已存在,則會使用包含該名稱之組態檔中的設定。If a configuration for that name already exists, the settings in the configuration file that contains that name are used. 如果名稱尚未存在,則會使用預設的組態設定。If the name does not already exist, the default configuration settings are used.

適用於