Behavior. Validate(OperationDescription) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
The operation being examined. Use for examination only. If the operation description is modified, the results are undefined.
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.