Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

Parameters

contractDescription
Type: System.ServiceModel.Description::ContractDescription^

The contract to validate.

endpoint
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
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft