IClientChannel Interface
TOC
Collapse the table of content
Expand the table of content

IClientChannel Interface

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

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

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

No code example is currently available or this language may not be supported.

The IClientChannel type exposes the following members.

  NameDescription
Public propertyAllowInitializationUIGets or sets a value that indicates whether DisplayInitializationUI can invoke the interactive channel initializers or throws an exception if that collection is not empty.
Public propertyAllowOutputBatchingGets or sets a value that instructs Windows Phone to store a set of messages before giving the messages to the transport. (Inherited from IContextChannel.)
Public propertyDidInteractiveInitializationGets a value that indicates whether a call was done to a user interface to obtain credential information.
Public propertyExtensionsGets a collection of extension objects for this extensible object. (Inherited from IExtensibleObject<T>.)
Public propertyInputSessionGets the input session for the channel. (Inherited from IContextChannel.)
Public propertyLocalAddressGets the local endpoint for the channel. (Inherited from IContextChannel.)
Public propertyOperationTimeoutGets or sets the time period within which an operation must complete or an exception is thrown. (Inherited from IContextChannel.)
Public propertyOutputSessionGets the output session associated with the channel, if any. (Inherited from IContextChannel.)
Public propertyRemoteAddressGets the remote address associated with the channel. (Inherited from IContextChannel.)
Public propertySessionIdReturns an identifier for the current session, if any. (Inherited from IContextChannel.)
Public propertyStateGets the current state of the communication-oriented object. (Inherited from ICommunicationObject.)
Public propertyViaGets the URI that contains the transport address to which messages are sent on the client channel.
Top

  NameDescription
Public methodAbortCauses a communication object to transition immediately from its current state into the closed state. (Inherited from ICommunicationObject.)
Public methodBeginClose(AsyncCallback, Object)Begins an asynchronous operation to close a communication object. (Inherited from ICommunicationObject.)
Public methodBeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close a communication object with a specified time-out. (Inherited from ICommunicationObject.)
Public methodBeginDisplayInitializationUIAn asynchronous call to begin using a user interface to obtain credential information.
Public methodBeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open a communication object. (Inherited from ICommunicationObject.)
Public methodBeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open a communication object within a specified interval of time. (Inherited from ICommunicationObject.)
Public methodClose()Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)
Public methodClose(TimeSpan)Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)
Public methodDisplayInitializationUIA call to a user interface to obtain credential information.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodEndCloseCompletes an asynchronous operation to close a communication object. (Inherited from ICommunicationObject.)
Public methodEndDisplayInitializationUICalled when the call to BeginDisplayInitializationUI has finished.
Public methodEndOpenCompletes an asynchronous operation to open a communication object. (Inherited from ICommunicationObject.)
Public methodGetProperty<T>Returns a typed object requested, if present, from the appropriate layer in the channel stack. (Inherited from IChannel.)
Public methodOpen()Causes a communication object to transition from the created state into the opened state. (Inherited from ICommunicationObject.)
Public methodOpen(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

  NameDescription
Public eventClosedOccurs when the communication object completes its transition from the closing state into the closed state. (Inherited from ICommunicationObject.)
Public eventClosingOccurs when the communication object first enters the closing state. (Inherited from ICommunicationObject.)
Public eventFaultedOccurs when the communication object first enters the faulted state. (Inherited from ICommunicationObject.)
Public eventOpenedOccurs when the communication object completes its transition from the opening state into the opened state. (Inherited from ICommunicationObject.)
Public eventOpeningOccurs when the communication object first enters the opening state. (Inherited from ICommunicationObject.)
Public eventUnknownMessageReceivedThis is a reserved event.
Top

The IClientChannel interface defines the operations supported by all channels returned by a call to CreateChannel. Use the IClientChannel methods and properties to inspect and modify the outbound typed channel.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft