ChannelFactory<TChannel>.CreateChannel Method (EndpointAddress)

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

Creates a channel that is used to send messages to a service at a specific endpoint address.

Namespace:  System.ServiceModel
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
The TChannel of type IChannel created by the factory.

Implements

IChannelFactory<TChannel>.CreateChannel(EndpointAddress)

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

This member is present but is not supported on Windows Phone.

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.