IContractBehavior.Validate Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Implement to confirm that the contract and endpoint can support the contract behavior.
Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Sub Validate ( _
contractDescription As ContractDescription, _
endpoint As ServiceEndpoint _
)
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.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.