Udostępnij za pośrednictwem


IChannelFactory<TChannel>.CreateChannel Method (EndpointAddress)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a channel of a specified type to a specified endpoint address.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Syntax

'Declaration
Function CreateChannel ( _
    to As EndpointAddress _
) As TChannel
TChannel CreateChannel(
    EndpointAddress to
)

Parameters

Return Value

Type: TChannel
A channel of type TChannel to the specified endpoint address.

Remarks

Use the CreateChannel(EndpointAddress, Uri) overload to distinguish the address to which the message is initially sent from the ultimate destination when you want to do manual routing. Note that any channels created by this channel factory are closed when the channel factory is closed.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.