Redigera

Dela via


IOperationBehavior.Validate(OperationDescription) Method

Definition

Implement to confirm that the operation meets some intended criteria.

public:
 void Validate(System::ServiceModel::Description::OperationDescription ^ operationDescription);
public void Validate (System.ServiceModel.Description.OperationDescription operationDescription);
abstract member Validate : System.ServiceModel.Description.OperationDescription -> unit
Public Sub Validate (operationDescription As OperationDescription)

Parameters

operationDescription
OperationDescription

The operation being examined. Use for examination only. If the operation description is modified, the results are undefined.

Remarks

Implement the Validate method to examine the structure to confirm any set of criteria. It is not necessary to perform any customizations in ApplyClientBehavior or ApplyDispatchBehavior to make use of this method. If the operation passes validation, return; otherwise, throw an exception.

For example, the Validate method can be use to ensure that an operation is authorized.

Applies to