1 out of 1 rated this helpful - Rate this topic

IClientChannel Interface

Defines the behavior of outbound request and request/reply channels used by client applications.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public interface IClientChannel : IContextChannel, 
	IChannel, ICommunicationObject, IExtensibleObject<IContextChannel>, IDisposable

The IClientChannel type exposes the following members.

  Name Description
Public property Supported by Portable Class Library AllowInitializationUI Gets or sets a value indicating whether DisplayInitializationUI attempts to call the System.ServiceModel.Dispatcher.IInteractiveChannelInitializer objects in the ClientRuntime.InteractiveChannelInitializers property or throws if that collection is not empty.
Public property Supported by Portable Class Library AllowOutputBatching Gets or sets a value that instructs to store a set of messages before giving the messages to the transport. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library DidInteractiveInitialization Gets a value indicating whether a call was done to a user interface to obtain credential information.
Public property Supported by Portable Class Library Extensions Gets a collection of extension objects for this extensible object. (Inherited from IExtensibleObject<T>.)
Public property Supported by Portable Class Library InputSession Gets the input session for the channel. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library LocalAddress Gets the local endpoint for the channel. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library OperationTimeout Gets or sets the time period within which an operation must complete or an exception is thrown. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library OutputSession Gets the output session associated with the channel, if any. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library RemoteAddress Gets the remote address associated with the channel. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library SessionId Returns an identifier for the current session, if any. (Inherited from IContextChannel.)
Public property Supported by Portable Class Library State Gets the current state of the communication-oriented object. (Inherited from ICommunicationObject.)
Public property Supported by Portable Class Library Via Gets the URI that contains the transport address to which messages are sent on the client channel.
Top
  Name Description
Public method Supported by Portable Class Library Abort Causes a communication object to transition immediately from its current state into the closed state. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library BeginClose(AsyncCallback, Object) Begins an asynchronous operation to close a communication object. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library BeginClose(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to close a communication object with a specified timeout. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library BeginDisplayInitializationUI An asynchronous call to begin using a user interface to obtain credential information.
Public method Supported by Portable Class Library BeginOpen(AsyncCallback, Object) Begins an asynchronous operation to open a communication object. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library BeginOpen(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to open a communication object within a specified interval of time. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library Close() Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library Close(TimeSpan) Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library DisplayInitializationUI A call to a user interface to obtain credential information.
Public method Supported by Portable Class Library Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method Supported by Portable Class Library EndClose Completes an asynchronous operation to close a communication object. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library EndDisplayInitializationUI Called when the call to BeginDisplayInitializationUI has finished.
Public method Supported by Portable Class Library EndOpen Completes an asynchronous operation to open a communication object. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library GetProperty<T> Returns a typed object requested, if present, from the appropriate layer in the channel stack. (Inherited from IChannel.)
Public method Supported by Portable Class Library Open() Causes a communication object to transition from the created state into the opened state. (Inherited from ICommunicationObject.)
Public method Supported by Portable Class Library Open(TimeSpan) Causes a communication object to transition from the created state into the opened state within a specified interval of time. (Inherited from ICommunicationObject.)
Top
  Name Description
Public event Supported by Portable Class Library Closed Occurs when the communication object completes its transition from the closing state into the closed state. (Inherited from ICommunicationObject.)
Public event Supported by Portable Class Library Closing Occurs when the communication object first enters the closing state. (Inherited from ICommunicationObject.)
Public event Supported by Portable Class Library Faulted Occurs when the communication object first enters the faulted state. (Inherited from ICommunicationObject.)
Public event Supported by Portable Class Library Opened Occurs when the communication object completes its transition from the opening state into the opened state. (Inherited from ICommunicationObject.)
Public event Supported by Portable Class Library Opening Occurs when the communication object first enters the opening state. (Inherited from ICommunicationObject.)
Public event Supported by Portable Class Library UnknownMessageReceived This is a reserved event.
Top

The IClientChannel interface defines the operations supported by all channels returned by a call to ChannelFactory<TChannel>.CreateChannel. Use the IClientChannel methods and properties to inspect and modify the outbound typed channel. The Service Metadata Utility Tool (Svcutil.exe) exports both a ClientBase<TChannel> class and a service contract interface by creating a contract interface that inherits from both the target service contract and IClientChannel, enabling you to use the extended contract as both the proxy to the service and to access the client channel.

For more information, see Client Architecture. For examples of its appearance in generated client code files, see Understanding Generated Client Code.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ