WebHttpBehavior Class

 

Enables the Web programming model for a Windows Communication Foundation (WCF) service.

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

System::Object
  System.ServiceModel.Description::WebHttpBehavior
    System.ServiceModel.Description::WebScriptEnablingBehavior

public ref class WebHttpBehavior : IEndpointBehavior

NameDescription
System_CAPS_pubmethodWebHttpBehavior()

Initializes a new instance of the WebHttpBehavior class.

NameDescription
System_CAPS_pubpropertyAutomaticFormatSelectionEnabled

Gets or sets a value that determines if automatic format selection is enabled.

System_CAPS_pubpropertyDefaultBodyStyle

Gets and sets the default message body style.

System_CAPS_pubpropertyDefaultOutgoingRequestFormat

Gets and sets the default outgoing request format.

System_CAPS_pubpropertyDefaultOutgoingResponseFormat

Gets and sets the default outgoing response format.

System_CAPS_pubpropertyFaultExceptionEnabled

Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.

System_CAPS_pubpropertyHelpEnabled

Gets or sets a value that determines if the WCF Help page is enabled.

System_CAPS_protpropertyJavascriptCallbackParameterName

Gets or sets the JavaScript callback parameter name.

NameDescription
System_CAPS_pubmethodAddBindingParameters(ServiceEndpoint^, BindingParameterCollection^)

Implements the AddBindingParameters(ServiceEndpoint^, BindingParameterCollection^) method to pass data at runtime to bindings to support custom behavior.

System_CAPS_protmethodAddClientErrorInspector(ServiceEndpoint^, ClientRuntime^)

Adds a client error inspector to the specified service endpoint.

System_CAPS_protmethodAddServerErrorHandlers(ServiceEndpoint^, EndpointDispatcher^)

Override this method to change the way errors that occur on the service are handled.

System_CAPS_pubmethodApplyClientBehavior(ServiceEndpoint^, ClientRuntime^)

Implements the ApplyClientBehavior(ServiceEndpoint^, ClientRuntime^) method to support modification or extension of the client across an endpoint.

System_CAPS_pubmethodApplyDispatchBehavior(ServiceEndpoint^, EndpointDispatcher^)

Implements the ApplyDispatchBehavior(ServiceEndpoint^, EndpointDispatcher^) method to support modification or extension of the client across an endpoint.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetOperationSelector(ServiceEndpoint^)

Creates a new WebHttpDispatchOperationSelector object.

System_CAPS_protmethodGetQueryStringConverter(OperationDescription^)

Gets the query string converter.

System_CAPS_protmethodGetReplyClientFormatter(OperationDescription^, ServiceEndpoint^)

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

System_CAPS_protmethodGetReplyDispatchFormatter(OperationDescription^, ServiceEndpoint^)

Gets the reply formatter on the service for the specified endpoint and service operation.

System_CAPS_protmethodGetRequestClientFormatter(OperationDescription^, ServiceEndpoint^)

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

System_CAPS_protmethodGetRequestDispatchFormatter(OperationDescription^, ServiceEndpoint^)

Gets the request formatter on the service for the given service operation and service endpoint.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodValidate(ServiceEndpoint^)

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

System_CAPS_protmethodValidateBinding(ServiceEndpoint^)

Ensures the binding is valid for use with the WCF Web Programming Model.

The WebHttpBehavior behavior, when used in conjunction with the WebHttpBinding binding, enables WCF to expose and access Web style services. WebServiceHost automatically adds this behavior to endpoints that use the WebHttpBinding.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0

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

Return to top
Show: