This documentation is archived and is not being maintained.
WebHttpBehavior Class
Visual Studio 2010
Enables the Web programming model for a service.
System::Object
System.ServiceModel.Description::WebHttpBehavior
System.ServiceModel.Description::WebScriptEnablingBehavior
System.ServiceModel.Description::WebHttpBehavior
System.ServiceModel.Description::WebScriptEnablingBehavior
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.dll)
The WebHttpBehavior type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AutomaticFormatSelectionEnabled | Gets or sets a value that determines if automatic format selection is enabled. |
![]() | DefaultBodyStyle | Gets and sets the default message body style. |
![]() | DefaultOutgoingRequestFormat | Gets and sets the default outgoing request format. |
![]() | DefaultOutgoingResponseFormat | Gets and sets the default outgoing response format. |
![]() | FaultExceptionEnabled | Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs. |
![]() | HelpEnabled | Gets or sets a value that determines if the Help page is enabled. |
![]() | JavascriptCallbackParameterName | Gets or sets the JavaScript callback parameter name. |
| Name | Description | |
|---|---|---|
![]() | AddBindingParameters | Implements the AddBindingParameters(ServiceEndpoint, BindingParameterCollection) method to pass data at runtime to bindings to support custom behavior. |
![]() | AddClientErrorInspector | Adds a client error inspector to the specified service endpoint. |
![]() | AddServerErrorHandlers | Override this method to change the way errors that occur on the service are handled. |
![]() | ApplyClientBehavior | Implements the ApplyClientBehavior(ServiceEndpoint, ClientRuntime) method to support modification or extension of the client across an endpoint. |
![]() | ApplyDispatchBehavior | Implements the ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) method to support modification or extension of the client across an endpoint. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetOperationSelector | Creates a new WebHttpDispatchOperationSelector object. |
![]() | GetQueryStringConverter | Gets the query string converter. |
![]() | GetReplyClientFormatter | Gets the reply formatter on the client for the specified endpoint and service operation. |
![]() | GetReplyDispatchFormatter | Gets the reply formatter on the service for the specified endpoint and service operation. |
![]() | GetRequestClientFormatter | Gets the request formatter on the client for the specified service operation and endpoint. |
![]() | GetRequestDispatchFormatter | Gets the request formatter on the service for the given service operation and service endpoint. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Validate | Confirms that the endpoint meets the requirements for the Web programming model. |
![]() | ValidateBinding | 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 to expose and access Web style services. WebServiceHost automatically adds this behavior to endpoints that use the WebHttpBinding.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
