System.ServiceModel 4.0.0.0 System.IDisposable System.ServiceModel.IContextChannel System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel>

The interface defines the operations supported by all channels returned by a call to . Use the methods and properties to inspect and modify the outbound typed channel. The Service Metadata Utility Tool (Svcutil.exe) exports both a class and a service contract interface by creating a contract interface that inherits from both the target service contract and , 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.

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

- Property
  4.0.0.0
  System.Boolean To be added.

  Set this to false if you want to throw an exception rather than display an initialization dialog. This is useful in a middle-tier scenario in which you want to guarantee that no dialog appears even if the application is configured to display one. For details, see Consuming Services Using a Client and .

  Gets or sets a value indicating whether attempts to call the objects in the property or throws if that collection is not empty.

- Method
  4.0.0.0
  System.IAsyncResult `` `` To be added. To be added.

  Call this method to cause any interactive channel initialization (for example, CardSpace card selection) to occur. This happens automatically if the channel is used without explicitly calling , so for many applications this call is optional.

  However, if the user takes a long time in the selection process, the operation that automatically called this may time out. To prevent this, call or and explicitly. These operations do not time out and allow you to control exactly where in your application this dialog comes up.

  This method only brings up a dialog if the application is configured to do so. When the application is not configured to use CardSpace or another interactive channel initializer, this call returns without any action.

  If you call this method explicitly, you must also explicitly open the channel before using it.

  An asynchronous call to begin using a user interface to obtain credential information.

  The to use to call back when processing has completed.

- Property
  4.0.0.0
  System.Boolean To be added.

  If operations are called on an without calling and , these methods are called automatically. For details, see Consuming Services Using a Client and .

  Gets a value indicating whether a call was done to a user interface to obtain credential information.

- Method
  4.0.0.0
  System.Void

  Call this method to cause any interactive channel initialization (for example, CardSpace card selection) to occur. This happens automatically if the channel is used without explicitly calling , so for many applications this call is optional.

  However, if the user takes a long time in the selection process, the operation that automatically called this may time out. To prevent this, call or and explicitly. These operations do not time out and allow you to control exactly where in your application this dialog comes up.

  This method only brings up a dialog if the application is configured to do so. When the application is not configured to use CardSpace or another interactive channel initializer, this call returns without any action.

  If you call this method explicitly, you must also explicitly open the channel before using it.

  For details, see Consuming Services Using a Client and .

  A call to a user interface to obtain credential information.

- Method
  4.0.0.0
  System.Void `` To be added. To be added.

  Called when the call to has finished.

- Event
  4.0.0.0
  System.EventHandler<System.ServiceModel.UnknownMessageReceivedEventArgs> To be added.

  This is a reserved event.

- Property
  4.0.0.0
  System.Uri To be added.

  The serves as both the ultimate destination and the physical address if a is not specified. If the is specified, then that is the actual physical address to which the message is sent and through which the message must go to arrive at its destination. This value can be set from a configuration file using the .

  Gets the URI that contains the transport address to which messages are sent on the client channel.