IOperationBehavior.Validate(OperationDescription) Method
Definition
Important
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)
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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for