IClientChannel 接口
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义出站请求的行为和客户端应用程序使用的请求/答复通道。
public interface class IClientChannel : IDisposable, System::ServiceModel::IContextChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
public interface IClientChannel : IDisposable, System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel>
type IClientChannel = interface
interface IDisposable
interface IChannel
interface ICommunicationObject
interface IContextChannel
interface IExtensibleObject<IContextChannel>
type IClientChannel = interface
interface IDisposable
interface IContextChannel
interface IChannel
interface ICommunicationObject
interface IExtensibleObject<IContextChannel>
type IClientChannel = interface
interface IContextChannel
interface IChannel
interface ICommunicationObject
interface IExtensibleObject<IContextChannel>
interface IDisposable
type IClientChannel = interface
interface IContextChannel
interface ICommunicationObject
interface IDisposable
interface IChannel
interface IExtensibleObject<IContextChannel>
Public Interface IClientChannel
Implements IContextChannel, IDisposable, IExtensibleObject(Of IContextChannel)
- 派生
- 实现
IClientChannel 接口定义通过调用 ChannelFactory<TChannel>.CreateChannel 返回的所有通道所支持的操作。 使用 IClientChannel 方法和属性来检查和修改出站类型的通道。 ServiceModel 元数据实用工具工具 (Svcutil.exe) 通过创建一个从目标服务协定IClientChannel继承的协定接口来导出一个ClientBase<TChannel>类和服务协定接口,并使你能够将扩展协定用作服务的代理和访问客户端通道。
有关详细信息,请参阅 WCF 客户端体系结构。 有关其出现在生成的客户端代码文件中的示例,请参阅 了解生成的客户端代码。
Allow |
获取或设置一个值,该值指示 DisplayInitializationUI() 是要尝试调用 IInteractiveChannelInitializer 属性中的 InteractiveChannelInitializers 对象还是要在该集合不为空时引发对象。 |
Allow |
获取或设置一个值,该值指示 Windows Communication Foundation (WCF) 在给出消息以进行传输之前存储一组消息。 (继承自 IContextChannel) |
Did |
获取一个值,该值指示是否对用户接口执行调用以获取凭据信息。 |
Extensions |
获取此可扩展对象的扩展对象集合。 (继承自 IExtensibleObject<T>) |
Input |
获取通道的输入会话。 (继承自 IContextChannel) |
Local |
获取通道的本地终结点。 (继承自 IContextChannel) |
Operation |
获取或设置一个时间段,操作必须在此时间段内完成否则将引发异常。 (继承自 IContextChannel) |
Output |
获取与通道关联的输出会话(如果有)。 (继承自 IContextChannel) |
Remote |
获取与通道关联的远程地址。 (继承自 IContextChannel) |
Session |
返回当前会话的标识符(如果有)。 (继承自 IContextChannel) |
State |
获取面向通信的对象的当前状态。 (继承自 ICommunicationObject) |
Via |
获取 URI,该 URI 包含客户端信道上发送的消息将要到达的传输地址。 |
Closed |
当通信对象完成从正在关闭状态转换到已关闭状态时发生。 (继承自 ICommunicationObject) |
Closing |
当通信对象首次进入正在关闭状态时发生。 (继承自 ICommunicationObject) |
Faulted |
当通信对象首次进入出错状态时发生。 (继承自 ICommunicationObject) |
Opened |
当通信对象完成从正在打开状态转换到已打开状态时发生。 (继承自 ICommunicationObject) |
Opening |
当通信对象首次进入正在打开状态时发生。 (继承自 ICommunicationObject) |
Unknown |
这是保留事件。 |
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
UWP | 10.0 |