Compartir a través de


WebHttpBehavior.GetRequestClientFormatter Method

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

Gets the request formatter on the client for the specified service operation and endpoint.

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

Syntax

'Declaration
Protected Overridable Function GetRequestClientFormatter ( _
    operationDescription As OperationDescription, _
    endpoint As ServiceEndpoint _
) As IClientMessageFormatter
protected virtual IClientMessageFormatter GetRequestClientFormatter(
    OperationDescription operationDescription,
    ServiceEndpoint endpoint
)

Parameters

Return Value

Type: System.ServiceModel.Dispatcher.IClientMessageFormatter
An IClientMessageFormatter reference to the request formatter on the client for the specified operation and endpoint.

Exceptions

Exception Condition
NotSupportedException

The JSON format is not currently supported in Silverlight.

Remarks

This is an extensibility point that derived behaviors can use to supply their own implementation of IClientMessageFormatter that is called to convert the input parameters of the service operation call to a request message. Parameters specified in the UriTemplate of the service operation must be serialized to the To URI of the request message and other parameters must be serialized to the body of the request message.

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.