ClientBase(TChannel) Constructor

ClientBase<TChannel> Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ClientBase<TChannel> class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Protected method ClientBase<TChannel>() Initializes a new instance of the ClientBase<TChannel> class using the default target endpoint from the application configuration file.
Protected method ClientBase<TChannel>(String) Initializes a new instance of the ClientBase<TChannel> class using the configuration information specified in the application configuration file by endpointConfigurationName.
Protected method ClientBase<TChannel>(Binding, EndpointAddress) Initializes a new instance of the ClientBase<TChannel> class using a specified binding and target address.
Protected method ClientBase<TChannel>(String, EndpointAddress) Initializes a new instance of the ClientBase<TChannel> class using the specified target address and endpoint information.
Protected method ClientBase<TChannel>(String, String) Initializes a new instance of the ClientBase<TChannel> class.
Top

The main function of the constructor is to create a System.ServiceModel.ChannelFactory<TChannel> where the type parameter is the type of the target service contract.

Show:
© 2017 Microsoft