Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientBase<TChannel> Class

Provides the base implementation used to create Silverlight 5 client objects (proxies) that can call services.

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

public abstract class ClientBase<TChannel> : ICommunicationObject
where TChannel : class

Type Parameters

TChannel

The channel used to connect to the service that identifies the type of service contract encapsulated by this proxy.

The ClientBase<TChannel> type exposes the following members.

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

  NameDescription
Protected propertySupported by Silverlight for Windows PhoneChannelGets the inner channel used to communicate with the service.
Public propertySupported by Silverlight for Windows PhoneChannelFactoryGets the underlying ChannelFactory<TChannel> object.
Public propertySupported by Silverlight for Windows PhoneClientCredentialsGets the client credentials used to call an operation.
Public propertySupported by Silverlight for Windows PhoneEndpointGets the target endpoint for the service to which the Silverlight 5 client can connect.
Public propertySupported by Silverlight for Windows PhoneInnerChannelGets the underlying IClientChannel implementation.
Public propertySupported by Silverlight for Windows PhoneStateGets the current state of the ClientBase<TChannel> object.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneAbortCauses the ClientBase<TChannel> object to transition immediately from its current state into the closed state.
Protected methodSupported by Silverlight for Windows PhoneCreateChannelReturns a new channel from the client to the service.
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneGetDefaultValueForInitialization<T>Replicates the behavior of the default keyword in C#.
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneInvokeAsyncProvides support for implementing the event-based asynchronous pattern. For more information about
this pattern, see Event-based Asynchronous Pattern Overview.
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.BeginClose(AsyncCallback, Object)Begins an asynchronous operation to close the ClientBase<TChannel>.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close the ClientBase<TChannel> with a specified time-out.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.BeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open the ClientBase<TChannel> object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open the ClientBase<TChannel> object within a specified interval of time.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.Close()Causes the ClientBase<TChannel> object to transition from its current state into the closed state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.Close(TimeSpan)Causes the ClientBase<TChannel> object to transition from its current state into the closed state.
Explicit interface implemetationPrivate eventICommunicationObject.ClosedThe event handler that is invoked when the ClientBase<TChannel> object has transitioned from its current state to the closed state.
Explicit interface implemetationPrivate eventICommunicationObject.ClosingThe event handler that is invoked when the ClientBase<TChannel> object transitions from its current state to the closed state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.EndCloseCompletes an asynchronous operation to close the ClientBase<TChannel> object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.EndOpenCompletes an asynchronous operation to open the ClientBase<TChannel> object.
Explicit interface implemetationPrivate eventICommunicationObject.FaultedThe event handler that is invoked when a fault occurs while performing an operation on the ClientBase<TChannel> object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.Open()Causes the ClientBase<TChannel> object to transition from the created state into the opened state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneICommunicationObject.Open(TimeSpan)Causes the ClientBase<TChannel> object to transition from the created state into the opened state within a specified interval of time.
Explicit interface implemetationPrivate eventICommunicationObject.OpenedThe event handler that is invoked when the ClientBase<TChannel> object has transitioned from the created state to the opened state.
Explicit interface implemetationPrivate eventICommunicationObject.OpeningThe event handler that is invoked when the ClientBase<TChannel> object transitions from the created state to the opened state.
Top

Extend the ClientBase<TChannel> class to create a custom Silverlight 5 client object (proxy) that can be used to connect to a service.

The ClientBase<TChannel> class can be used quickly and easily by developers who prefer objects to the use of the interfaces and the System.ServiceModel.ChannelFactory<TChannel> class. In all cases this class wraps or exposes the methods and functionality of the System.ServiceModel.ChannelFactory<TChannel> class and the System.ServiceModel.IClientChannel interface.

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft