Share via


WebHttpBehavior.Validate Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Confirms that the endpoint meets the requirements for the Web programming model.

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

Syntax

'Declaration
Public Overridable Sub Validate ( _
    endpoint As ServiceEndpoint _
)
public virtual void Validate(
    ServiceEndpoint endpoint
)

Parameters

Implements

IEndpointBehavior.Validate(ServiceEndpoint)

Exceptions

Exception Condition
ArgumentNullException

Endpoint is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

Message headers are included or the a scheme other than HTTP(S) is used or manual addressing is configured incorrectly.

Remarks

Verifies the following:

  • The endpoint is not nulla null reference (Nothing in Visual Basic).

  • The endpoint uses the HTTP or HTTPS schemes.

  • The MessageVersion of the binding is set to None.

  • The binding contains an HttpTransportBindingElement where ManualAddressing is set to true.

  • The parameters specified in the UriTemplate must be part of the operation.

  • Operations that specify Bare have, at most, one input parameter and can have no out parameters.

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.