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^)
.NET Framework (current version)
Implement to confirm that the contract and endpoint can support the contract behavior.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
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
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Show: