Επεξεργασία

Κοινή χρήση μέσω


WebHttpBehavior Class

Definition

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

public ref class WebHttpBehavior : System::ServiceModel::Description::IEndpointBehavior
public class WebHttpBehavior : System.ServiceModel.Description.IEndpointBehavior
type WebHttpBehavior = class
    interface IEndpointBehavior
Public Class WebHttpBehavior
Implements IEndpointBehavior
Inheritance
WebHttpBehavior
Derived
Implements

Remarks

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.

Constructors

WebHttpBehavior()

Initializes a new instance of the WebHttpBehavior class.

Properties

AutomaticFormatSelectionEnabled

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

DefaultBodyStyle

Gets or sets the default message body style.

DefaultOutgoingRequestFormat

Gets or sets the default outgoing request format.

DefaultOutgoingResponseFormat

Gets or 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 WCF Help page is enabled.

JavascriptCallbackParameterName

Gets or sets the JavaScript callback parameter name.

Methods

AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

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

AddClientErrorInspector(ServiceEndpoint, ClientRuntime)

Adds a client error inspector to the specified service endpoint.

AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher)

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

ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

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

ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

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)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetOperationSelector(ServiceEndpoint)

Creates a new WebHttpDispatchOperationSelector object.

GetQueryStringConverter(OperationDescription)

Gets the query string converter.

GetReplyClientFormatter(OperationDescription, ServiceEndpoint)

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

GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint)

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

GetRequestClientFormatter(OperationDescription, ServiceEndpoint)

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

GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint)

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(ServiceEndpoint)

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

ValidateBinding(ServiceEndpoint)

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

Applies to