共用方式為


TransactionFlowAttribute.IOperationBehavior.ApplyDispatchBehavior 方法

定義

為屬性標記的方法附加屬性功能至 DispatchOperation 物件。 這個方法無法被繼承。

 virtual void System.ServiceModel.Description.IOperationBehavior.ApplyDispatchBehavior(System::ServiceModel::Description::OperationDescription ^ description, System::ServiceModel::Dispatcher::DispatchOperation ^ dispatch) = System::ServiceModel::Description::IOperationBehavior::ApplyDispatchBehavior;
void IOperationBehavior.ApplyDispatchBehavior (System.ServiceModel.Description.OperationDescription description, System.ServiceModel.Dispatcher.DispatchOperation dispatch);
abstract member System.ServiceModel.Description.IOperationBehavior.ApplyDispatchBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Dispatcher.DispatchOperation -> unit
override this.System.ServiceModel.Description.IOperationBehavior.ApplyDispatchBehavior : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Dispatcher.DispatchOperation -> unit
Sub ApplyDispatchBehavior (description As OperationDescription, dispatch As DispatchOperation) Implements IOperationBehavior.ApplyDispatchBehavior

參數

description
OperationDescription

此作業的描述。

dispatch
DispatchOperation

此作業的 DispatchOperation 物件。

實作

備註

這個方法可讓您在所有訊息中或針對特定作業檢視、修改或新增自訂延伸。 請注意,如果是 TransactionFlowAttribute,這個方法的實作便是空的。 建立服務時,基礎結構會由內部呼叫這個方法。

適用於