ClientBase(TChannel).ChannelBase(T) Class
TOC
Collapse the table of content
Expand the table of content

ClientBase<TChannel>::ChannelBase<T> Class

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

This class is used by automatically generated client proxies to call services and should not be used otherwise.

System::Object
  System.ServiceModel::ClientBase<TChannel>::ChannelBase<T>

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

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

Type Parameters

T

The generic class.

The ClientBase<TChannel>::ChannelBase<T> generic type exposes the following members.

  NameDescription
Protected methodClientBase<TChannel>::ChannelBase<T>Initializes a new instance of the ClientBase<TChannel> class from an existing instance of the class.
Top

  NameDescription
Protected methodBeginInvokeStarts an asynchronous call of a specified method by name.
Protected methodEndInvokeCompletes an asynchronous invocation by name of a specified method.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIChannel::GetProperty<TProperty>Returns a typed object requested, if present, from the appropriate layer in the channel stack.
Explicit interface implemetationPrivate propertyIClientChannel::AllowInitializationUIThe EndpointAddress serves as both the ultimate destination and the physical address if a Via is not specified. If the Via 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.
Explicit interface implemetationPrivate methodIClientChannel::BeginDisplayInitializationUIAn asynchronous call to begin using a user interface to obtain credential information.
Explicit interface implemetationPrivate propertyIClientChannel::DidInteractiveInitializationGets a value that indicates whether a call was done to a user interface to obtain credential information.
Explicit interface implemetationPrivate methodIClientChannel::DisplayInitializationUIA call to a user interface to obtain credential information.
Explicit interface implemetationPrivate methodIClientChannel::EndDisplayInitializationUICalled when the call to BeginDisplayInitializationUI has finished.
Explicit interface implemetationPrivate eventIClientChannel::UnknownMessageReceivedThis is a reserved event.
Explicit interface implemetationPrivate propertyIClientChannel::ViaGets the URI that contains the transport address to which messages are sent on the client channel.
Explicit interface implemetationPrivate methodICommunicationObject::AbortCauses a communication object to transition immediately from its current state into the closed state.
Explicit interface implemetationPrivate methodICommunicationObject::BeginClose(AsyncCallback, Object)Begins an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodICommunicationObject::BeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close a communication object with a specified time-out.
Explicit interface implemetationPrivate methodICommunicationObject::BeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate methodICommunicationObject::BeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open a communication object within a specified interval of time.
Explicit interface implemetationPrivate methodICommunicationObject::Close()Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetationPrivate methodICommunicationObject::Close(TimeSpan)Causes a communication 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>::ChannelBase<T> 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>::ChannelBase<T> object transitions from its current state to the closed state.
Explicit interface implemetationPrivate methodICommunicationObject::EndCloseCompletes an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodICommunicationObject::EndOpenCompletes an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate eventICommunicationObject::FaultedThe event handler that is invoked when a fault occurs while performing an operation on the ClientBase<TChannel>::ChannelBase<T> object.
Explicit interface implemetationPrivate methodICommunicationObject::Open()Causes a communication object to transition from the created state into the opened state.
Explicit interface implemetationPrivate methodICommunicationObject::Open(TimeSpan)Causes a communication 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>::ChannelBase<T> 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>::ChannelBase<T> object transitions from the created state to the opened state.
Explicit interface implemetationPrivate propertyICommunicationObject::StateGets the current state of the communication-oriented object.
Explicit interface implemetationPrivate propertyIContextChannel::AllowOutputBatchingGets or sets a value that instructs Windows Phone to store a set of messages before giving the messages to the transport.
Explicit interface implemetationPrivate propertyIContextChannel::InputSessionGets the input session for the channel.
Explicit interface implemetationPrivate propertyIContextChannel::LocalAddressGets the local endpoint for the channel.
Explicit interface implemetationPrivate propertyIContextChannel::OperationTimeoutGets or sets the time period within which an operation must complete or an exception is thrown.
Explicit interface implemetationPrivate propertyIContextChannel::OutputSessionGets the output session associated with the channel, if any.
Explicit interface implemetationPrivate propertyIContextChannel::RemoteAddressGets the remote address associated with the channel.
Explicit interface implemetationPrivate propertyIContextChannel::SessionIdReturns an identifier for the current session, if any.
Explicit interface implemetationPrivate methodIDisposable::DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources associated with the channel.
Explicit interface implemetationPrivate propertyIExtensibleObject<IContextChannel>::ExtensionsGets a collection of extension objects for this extensible object.
Explicit interface implemetationPrivate methodIOutputChannel::BeginSend(Message, AsyncCallback, Object)Begins an asynchronous operation to transmit a message to the destination of the output channel.
Explicit interface implemetationPrivate methodIOutputChannel::BeginSend(Message, TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.
Explicit interface implemetationPrivate methodIOutputChannel::EndSendCompletes an asynchronous operation to transmit a message to the destination of the output channel.
Explicit interface implemetationPrivate propertyIOutputChannel::RemoteAddressGets the destination of the service to which messages are sent out on the output channel.
Explicit interface implemetationPrivate methodIOutputChannel::Send(Message)Transmits a message to the destination of the output channel.
Explicit interface implemetationPrivate methodIOutputChannel::Send(Message, TimeSpan)Sends a message on the current output channel within a specified interval of time.
Explicit interface implemetationPrivate propertyIOutputChannel::ViaGets the URI that contains the transport address to which messages are sent on the output channel.
Explicit interface implemetationPrivate methodIRequestChannel::BeginRequest(Message, AsyncCallback, Object)Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.
Explicit interface implemetationPrivate methodIRequestChannel::BeginRequest(Message, TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.
Explicit interface implemetationPrivate methodIRequestChannel::EndRequestCompletes an asynchronous operation to return a message-based response to a transmitted request.
Explicit interface implemetationPrivate propertyIRequestChannel::RemoteAddressGets the remote address to which the request channel sends messages.
Explicit interface implemetationPrivate methodIRequestChannel::Request(Message)Sends a message-based request and returns the correlated message-based response.
Explicit interface implemetationPrivate methodIRequestChannel::Request(Message, TimeSpan)Sends a message-based request and returns the correlated message-based response within a specified interval of time.
Explicit interface implemetationPrivate propertyIRequestChannel::ViaGets the transport address to which the request is sent.
Top

If you need to call a service manually, that is, without the assistance of a generated proxy, use the ChannelFactory<TChannel> class instead of this class.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft