Validate Method

IContractBehavior.Validate Method

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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2016 Microsoft