ClientBase<TChannel>.CreateChannel Method

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

Returns a new channel from the client to the service.

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

Syntax

'Declaration
Protected Overridable Function CreateChannel As TChannel
protected virtual TChannel CreateChannel()

Return Value

Type: TChannel
A channel of type TChannel that identifies the type of service contract encapsulated by this client object (proxy).

Remarks

Returns the channel created by the inner channel factory. Exceptions thrown by ChannelFactory<TChannel>.CreateChannel can be expected here.

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.