Share via


ChannelFactoryBase<TChannel>.CreateChannel Method (EndpointAddress)

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

Creates a particular type of channel with a specified endpoint address.

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

Syntax

'Declaration
Public Function CreateChannel ( _
    address As EndpointAddress _
) As TChannel
public TChannel CreateChannel(
    EndpointAddress address
)

Parameters

Return Value

Type: TChannel
A channel of type TChannel with the specified address.

Implements

IChannelFactory<TChannel>.CreateChannel(EndpointAddress)

Exceptions

Exception Condition
ArgumentNullException

address is nulla null reference (Nothing in Visual Basic).

Remarks

This method calls OnCreateChannel(EndpointAddress, Uri) when invoked. This method cannot be overridden by a derived class.

This method uses Uri as the transport address to which messages are sent on the output channel.

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.