ChannelFactoryBase<TChannel>.CreateChannel Method
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 particular type of channel with a specified address.
Overloads
CreateChannel(EndpointAddress) |
Creates a particular type of channel with a specified endpoint address. |
CreateChannel(EndpointAddress, Uri) |
Creates a particular type of channel with specified transport and endpoint addresses. |
CreateChannel(EndpointAddress)
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Creates a particular type of channel with a specified endpoint address.
public:
virtual TChannel CreateChannel(System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannel (System.ServiceModel.EndpointAddress address);
abstract member CreateChannel : System.ServiceModel.EndpointAddress -> 'Channel
override this.CreateChannel : System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannel (address As EndpointAddress) As TChannel
Parameters
- address
- EndpointAddress
The EndpointAddress of the remote endpoint to which the channel sends messages.
Returns
A channel of type TChannel
with the specified address
.
Implements
Exceptions
address
is null
.
Remarks
This method calls OnCreateChannel(EndpointAddress, Uri) when invoked. This method cannot be overridden by a derived class.
This uses Uri as the transport address to which messages are sent on the output channel.
Applies to
CreateChannel(EndpointAddress, Uri)
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
- Source:
- ChannelFactoryBase.cs
Creates a particular type of channel with specified transport and endpoint addresses.
public:
virtual TChannel CreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public TChannel CreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
abstract member CreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
override this.CreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Function CreateChannel (address As EndpointAddress, via As Uri) As TChannel
Parameters
- address
- EndpointAddress
The EndpointAddress of the remote endpoint to which the channel sends messages.
- via
- Uri
The Uri that contains the transport address to which messages are sent on the output channel.
Returns
A channel of type TChannel
with the specified remote and transport addresses.
Implements
Remarks
This method calls OnCreateChannel(EndpointAddress, Uri) when invoked.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기