ConfigurationChannelFactory<TChannel> Constructor
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.
Creates a new instance of the ConfigurationChannelFactory<TChannel> class with the specified endpoint configuration name, Configuration object, and the EndpointAddress object.
public:
ConfigurationChannelFactory(System::String ^ endpointConfigurationName, System::Configuration::Configuration ^ configuration, System::ServiceModel::EndpointAddress ^ remoteAddress);
public ConfigurationChannelFactory (string endpointConfigurationName, System.Configuration.Configuration configuration, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Configuration.ConfigurationChannelFactory<'Channel> : string * System.Configuration.Configuration * System.ServiceModel.EndpointAddress -> System.ServiceModel.Configuration.ConfigurationChannelFactory<'Channel>
Public Sub New (endpointConfigurationName As String, configuration As Configuration, remoteAddress As EndpointAddress)
Parameters
- endpointConfigurationName
- String
The name property in an endpoint configuration element.
- configuration
- Configuration
The settings that define the information in the endpoint element.
- remoteAddress
- EndpointAddress
The IP address of a destination endpoint in a client or server session. This parameter may be set to null
to indicate the endpoint address should be taken from the configuration element specified in the configuration
parameter.
Exceptions
endpointConfigurationName
or configuration
is null
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈