ClientBase<TChannel>.ChannelBase<T> ClientBase<TChannel>.ChannelBase<T> ClientBase<TChannel>.ChannelBase<T> Class

定义

表示一般 ChannelBase 类。Represents the generic ChannelBase class.

generic <typename T>
 where TChannel : class where T : classpublic protected ref class ClientBase<TChannel>::ChannelBase : IDisposable, System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::IRequestChannel, System::ServiceModel::IClientChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
protected internal class ClientBase<TChannel>.ChannelBase<T> : IDisposable, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.IClientChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> where TChannel : class where T : class
Protected Friend Class ClientBase(Of TChannel).ChannelBase(Of T)
Implements IClientChannel, IDisposable, IExtensibleObject(Of IContextChannel), IOutputChannel, IRequestChannel

类型参数

TChannel
T

泛型类。The generic class.

继承
ClientBase<TChannel>.ChannelBase<T>ClientBase<TChannel>.ChannelBase<T>ClientBase<TChannel>.ChannelBase<T>
实现

注解

重要

使用不受信任的数据调用此类中的方法存在安全风险。Calling methods from this class with untrusted data is a security risk. 仅使用受信任的数据调用此类中的方法。Call the methods from this class only with trusted data. 有关详细信息,请参阅数据验证For more information, see Data Validation.

构造函数

ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>) ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>) ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>)

从该类的现有实例初始化 ClientBase<TChannel>.ChannelBase<T> 类的新实例。Initializes a new instance of the ClientBase<TChannel>.ChannelBase<T> class from an existing instance of the class.

属性

AllowInitializationUI AllowInitializationUI AllowInitializationUI
AllowOutputBatching AllowOutputBatching AllowOutputBatching
DidInteractiveInitialization DidInteractiveInitialization DidInteractiveInitialization
InputSession InputSession InputSession
LocalAddress LocalAddress LocalAddress
OperationTimeout OperationTimeout OperationTimeout
OutputSession OutputSession OutputSession
RemoteAddress RemoteAddress RemoteAddress
SessionId SessionId SessionId
Via Via Via

方法

BeginDisplayInitializationUI(AsyncCallback, Object) BeginDisplayInitializationUI(AsyncCallback, Object) BeginDisplayInitializationUI(AsyncCallback, Object)
BeginInvoke(String, Object[], AsyncCallback, Object) BeginInvoke(String, Object[], AsyncCallback, Object) BeginInvoke(String, Object[], AsyncCallback, Object)

按名称启动指定方法的异步调用。Starts an asynchronous call of a specified method by name.

DisplayInitializationUI() DisplayInitializationUI() DisplayInitializationUI()
Dispose() Dispose() Dispose()
EndDisplayInitializationUI(IAsyncResult) EndDisplayInitializationUI(IAsyncResult) EndDisplayInitializationUI(IAsyncResult)
EndInvoke(String, Object[], IAsyncResult) EndInvoke(String, Object[], IAsyncResult) EndInvoke(String, Object[], IAsyncResult)

按指定方法的名称完成异步调用。Completes an asynchronous invocation by name of a specified method.

Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
Invoke(String, Object[]) Invoke(String, Object[]) Invoke(String, Object[])
MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

事件

UnknownMessageReceived UnknownMessageReceived UnknownMessageReceived

显式界面实现

IChannel.GetProperty<TProperty>() IChannel.GetProperty<TProperty>() IChannel.GetProperty<TProperty>()

从通道堆栈的适当层返回所请求的类型化对象(如果存在)。Returns a typed object requested, if present from the appropriate layer in the channel stack.

IClientChannel.AllowInitializationUI IClientChannel.AllowInitializationUI IClientChannel.AllowInitializationUI

获取或设置一个值,该值指示客户端是否允许初始化 UI。Gets or sets a value that indicates whether the client channel allows an initialization UI.

IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object) IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object) IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object)

要开始使用用户接口获取凭据信息的异步调用。An asynchronous call to begin using a user interface to obtain credential information.

IClientChannel.DidInteractiveInitialization IClientChannel.DidInteractiveInitialization IClientChannel.DidInteractiveInitialization

获取一个值,该值指示是否对用户接口执行调用以获取凭据信息。Gets a value that indicates whether a call was done to a user interface to obtain credential information.

IClientChannel.DisplayInitializationUI() IClientChannel.DisplayInitializationUI() IClientChannel.DisplayInitializationUI()

指定用以获取凭据信息的用户接口的调用。Specifies a call to a user interface to obtain credential information.

IClientChannel.EndDisplayInitializationUI(IAsyncResult) IClientChannel.EndDisplayInitializationUI(IAsyncResult) IClientChannel.EndDisplayInitializationUI(IAsyncResult)

在对 BeginDisplayInitializationUI 的调用完成时调用。Called when the call to BeginDisplayInitializationUI has finished.

IClientChannel.UnknownMessageReceived IClientChannel.UnknownMessageReceived IClientChannel.UnknownMessageReceived

当 ClientBase 对象接收一条未知消息时调用的事件处理程序。The event handler that is invoked when the ClientBase object receives an unknown message.

IClientChannel.Via IClientChannel.Via IClientChannel.Via

获取 URI,该 URI 包含客户端通道上发送的消息将要到达的传输地址。Gets the URI that contains the transport address to which messages are sent on the client channel.

ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort()

使通信对象立即从其当前状态转换到关闭状态。Causes a communication object to transition immediately from its current state into the closed state.

ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时时间内关闭通信对象。Begins an asynchronous operation to close a communication object with a specified time-out.

ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object)

开始一个异步操作以打开通信对象。Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close()

使通信对象从其当前状态转换到关闭状态。Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan)

使通信对象从其当前状态转换到关闭状态。Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed

ClientBase 对象已从其当前状态转换到已关闭状态时调用的事件处理程序。The event handler that is invoked when the ClientBase object has transitioned from its current state to the closed state.

ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing

ClientBase 对象从其当前状态转换到已关闭状态时调用的事件处理程序。The event handler that is invoked when the ClientBase object transitions from its current state to the closed state.

ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult)

完成一个异步操作以关闭通信对象。Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult)

完成一个异步操作以打开通信对象。Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted

在对 ClientBase 对象执行操作过程中发生错误时调用的事件处理程序。The event handler that is invoked when fault occurs while performing an operation on the ClientBase object.

ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open()

使通信对象从已创建状态转换到已打开状态。Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan)

使通信对象在指定时间间隔内从已创建状态转换到已打开状态。Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened

ClientBase 对象已从已创建状态转换为已打开状态时调用的事件处理程序。The event handler that is invoked when the ClientBase object has transitioned from the created state to the opened state.

ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening

ClientBase 对象从已创建状态转换为已打开状态时调用的事件处理程序。The event handler that is invoked when the ClientBase object transitions from the created state to the opened state.

ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State

获取面向通信的对象的当前状态。Gets the current state of the communication-oriented object.

IContextChannel.AllowOutputBatching IContextChannel.AllowOutputBatching IContextChannel.AllowOutputBatching

获取或设置指示是否允许传出消息的批处理的值;如果不允许,则为 false。Gets or sets a value that indicates whether the batching of outgoing messages is allowed; otherwise, false.

IContextChannel.InputSession IContextChannel.InputSession IContextChannel.InputSession

获取通道的输入会话。Gets the input session for the channel.

IContextChannel.LocalAddress IContextChannel.LocalAddress IContextChannel.LocalAddress

获取通道的本地终结点。Gets the local endpoint for the channel.

IContextChannel.OperationTimeout IContextChannel.OperationTimeout IContextChannel.OperationTimeout

获取或设置一个时间段,操作必须在此时间段内完成否则将引发异常。Gets or sets the time period within which an operation must complete or an exception is thrown.

IContextChannel.OutputSession IContextChannel.OutputSession IContextChannel.OutputSession

获取与通道关联的输出会话(如果有)。Gets the output session associated with the channel, if any.

IContextChannel.RemoteAddress IContextChannel.RemoteAddress IContextChannel.RemoteAddress

获取与通道关联的远程地址。Gets the remote address associated with the channel.

IContextChannel.SessionId IContextChannel.SessionId IContextChannel.SessionId

获取当前会话的标识符(如果有)。Gets an identifier for the current session, if any.

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

通过释放或重置与通道相关的非托管资源来指定应用程序定义的任务。Performs application-defined tasks with freeing, releasing, or resetting unmanaged resources associated with the channel.

IExtensibleObject<IContextChannel>.Extensions IExtensibleObject<IContextChannel>.Extensions IExtensibleObject<IContextChannel>.Extensions

获取此可扩展对象的扩展对象集合。Gets a collection of extension objects for this extensible object.

IOutputChannel.BeginSend(Message, AsyncCallback, Object) IOutputChannel.BeginSend(Message, AsyncCallback, Object) IOutputChannel.BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。Begins an asynchronous operation to transmit a message to the destination of the output channel.

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object) IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object) IOutputChannel.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.

IOutputChannel.EndSend(IAsyncResult) IOutputChannel.EndSend(IAsyncResult) IOutputChannel.EndSend(IAsyncResult)

完成一个异步操作,向输出通道的目标传输消息。Completes an asynchronous operation to transmit a message to the destination of the output channel.

IOutputChannel.RemoteAddress IOutputChannel.RemoteAddress IOutputChannel.RemoteAddress

获取在输出通道上发出的消息将要到达的服务的目标。Gets the destination of the service to which messages are sent out on the output channel.

IOutputChannel.Send(Message) IOutputChannel.Send(Message) IOutputChannel.Send(Message)

向输出通道的目标传输一条消息。Transmits a message to the destination of the output channel.

IOutputChannel.Send(Message, TimeSpan) IOutputChannel.Send(Message, TimeSpan) IOutputChannel.Send(Message, TimeSpan)

在指定时间间隔内在当前输出通道上发送一条消息。Sends a message on the current output channel within a specified interval of time.

IOutputChannel.Via IOutputChannel.Via IOutputChannel.Via

获取 URI,该 URI 包含输出通道发送消息的目标传输地址。Gets the URI that contains the transport address to which messages are sent on the output channel.

IRequestChannel.BeginRequest(Message, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

开始一个异步操作,将请求消息传送到请求-答复消息交换的答复端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object) IRequestChannel.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.

IRequestChannel.EndRequest(IAsyncResult) IRequestChannel.EndRequest(IAsyncResult) IRequestChannel.EndRequest(IAsyncResult)

完成异步操作以向传送的请求返回基于消息的响应。Completes an asynchronous operation to return a message-based response to a transmitted request.

IRequestChannel.RemoteAddress IRequestChannel.RemoteAddress IRequestChannel.RemoteAddress

获取在输出通道上发出的消息将要到达的服务的目标。Gets the destination of the service to which messages are sent out on the output channel.

IRequestChannel.Request(Message) IRequestChannel.Request(Message) IRequestChannel.Request(Message)

发送一个基于消息的请求,并返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response.

IRequestChannel.Request(Message, TimeSpan) IRequestChannel.Request(Message, TimeSpan) IRequestChannel.Request(Message, TimeSpan)

发送一个基于消息的请求,并在指定的时间间隔内返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response within a specified interval of time.

IRequestChannel.Via IRequestChannel.Via IRequestChannel.Via

获取将请求发送至的目标传输地址。Gets the transport address to which the request is sent.

适用于