WebHttpBehavior Class

Enables the Web programming model for a Silverlight client.


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

Public Class WebHttpBehavior _
	Implements IEndpointBehavior

The WebHttpBehavior type exposes the following members.

Public methodWebHttpBehaviorInitializes a new instance of the WebHttpBehavior class.

Public propertyDefaultBodyStyleGets and sets the default message body style.
Public propertyDefaultOutgoingRequestFormatGets and sets the default outgoing request format.
Public propertyDefaultOutgoingResponseFormatGets and sets the default outgoing response format.
Public propertyFaultExceptionEnabledGets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.

Public methodAddBindingParametersThis method is not used in Silverlight 5.
Protected methodAddClientErrorInspectorAdds a client error inspector to the specified client runtime.
Public methodApplyClientBehaviorImplements the ApplyClientBehavior(ServiceEndpoint, ClientRuntime) method to support modification or extension of the client across an endpoint.
Public methodApplyDispatchBehaviorThis method is not used in Silverlight 5.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetQueryStringConverterGets the query string converter.
Protected methodGetReplyClientFormatterGets the reply formatter on the client for the specified endpoint and service operation.
Protected methodGetRequestClientFormatterGets the request formatter on the client for the specified service operation and endpoint.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidateConfirms that the endpoint meets the requirements for the Web programming model.
Protected methodValidateBindingEnsures the binding is valid for use with the Silverlight Web Programming Model.

The WebHttpBehavior behavior enables Silverlight to access Web style services. It sets default message body style, outgoing request and response formats, and validates other client behavior concerning contracts used.


Supported in: 5, 4

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.