共用方式為


ConfigurationDuplexChannelFactory<TChannel> 建構函式

定義

使用指定的回呼物件、端點組態名稱、遠端位址以及組態設定值,建立 ConfigurationDuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 ConfigurationDuplexChannelFactory(System::Object ^ callbackObject, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress, System::Configuration::Configuration ^ configuration);
public ConfigurationDuplexChannelFactory (object callbackObject, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress, System.Configuration.Configuration configuration);
new System.ServiceModel.Configuration.ConfigurationDuplexChannelFactory<'Channel> : obj * string * System.ServiceModel.EndpointAddress * System.Configuration.Configuration -> System.ServiceModel.Configuration.ConfigurationDuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpointConfigurationName As String, remoteAddress As EndpointAddress, configuration As Configuration)

參數

callbackObject
Object

從用戶端回應至訊息的程序。

endpointConfigurationName
String

端點組態項目中的名稱屬性。

remoteAddress
EndpointAddress

用戶端或伺服器工作階段中的目的地端點 IP 位址。

configuration
Configuration

定義端點項目中呈現之資訊的設定值。

例外狀況

callbackObjectendpointConfigurationNameconfigurationnull

適用於