IContractBehavior.Validate Method (ContractDescription, ServiceEndpoint)


Implement to confirm that the contract and endpoint can support the contract behavior.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void Validate(
	ContractDescription contractDescription,
	ServiceEndpoint endpoint


Type: System.ServiceModel.Description.ContractDescription

The contract to validate.

Type: System.ServiceModel.Description.ServiceEndpoint

The endpoint to validate.

Implement the Validate method to confirm that the contract description is sufficient to support the custom contract behavior. Implementations can inspect the description and either throw or return no value.

This method is called once for each endpoint that uses the specified service contract.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Return to top