TransactionFlowAttribute.IOperationBehavior.ApplyClientBehavior(OperationDescription, ClientOperation) 方法
定义
将属性功能附加到此属性功能标记的方法的 ProxyOperation 对象。Attaches the attribute functionality to the ProxyOperation object for the method that the attribute marks. 无法继承此方法。This method cannot be inherited.
virtual void System.ServiceModel.Description.IOperationBehavior.ApplyClientBehavior(System::ServiceModel::Description::OperationDescription ^ description, System::ServiceModel::Dispatcher::ClientOperation ^ proxy) = System::ServiceModel::Description::IOperationBehavior::ApplyClientBehavior;
void IOperationBehavior.ApplyClientBehavior (System.ServiceModel.Description.OperationDescription description, System.ServiceModel.Dispatcher.ClientOperation proxy);
abstract member System.ServiceModel.Description.IOperationBehavior.ApplyClientBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Dispatcher.ClientOperation -> unit
override this.System.ServiceModel.Description.IOperationBehavior.ApplyClientBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Dispatcher.ClientOperation -> unit
Sub ApplyClientBehavior (description As OperationDescription, proxy As ClientOperation) Implements IOperationBehavior.ApplyClientBehavior
参数
- description
- OperationDescription
此属性将功能附加到的操作。The operation to which the attribute attaches functionality.
- proxy
- ClientOperation
表示当前操作的 ClientOperation 对象。The ClientOperation object that represents the current operation.
实现
注解
通过使用此方法,可以在所有消息范围内或者针对某个特定操作来查看、修改或添加对客户端运行库的自定义扩展。This method allows you to view, modify, or add custom extensions to the client runtime across all messages, or for a specific operation. 请注意,对于 TransactionFlowAttribute,此方法的实现为空。Note that in the case of the TransactionFlowAttribute, the implementation of this method is empty. 创建服务代理时,基础结构会在内部调用此方法。This method is called internally by the infrastructure when a service proxy is created.