Export (0) Print
Expand All

HttpConfiguration Class

Configuration of HttpServer instances.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

public class HttpConfiguration implements IDisposable

The HttpConfiguration type exposes the following members.

  NameDescription
Public methodHttpConfiguration()Initializes a new instance of the HttpConfiguration class.
Public methodHttpConfiguration(HttpRouteCollection)Initializes a new instance of the HttpConfiguration class with an HTTP route collection.
Top

  NameDescription
Public propertyDependencyResolverGets or sets the dependency resolver associated with thisinstance.
Public propertyFiltersGets the list of filters that apply to all requests served using this HttpConfiguration instance.
Public propertyFormattersGets the media-type formatters for this instance.
Public propertyIncludeErrorDetailPolicyGets or sets a value indicating whether error details should be included in error messages.
Public propertyInitializer Gets or sets the action that will perform final initialization of the HttpConfiguration instance before it is used to process requests.
Public propertyMessageHandlersGets an ordered list of DelegatingHandler instances to be invoked as an HttpRequestMessage travels up the stack and an HttpResponseMessage travels down in stack in return.
Public propertyParameterBindingRulesThe collection of rules for how parameters should be bound.
Public propertyPropertiesGets the properties associated with this instance.
Public propertyRoutesGets the HttpRouteCollection associated with this HttpConfiguration instance.
Public propertyServicesGets the container of default services associated with this instance.
Public propertyVirtualPathRootGets the root virtual path.
Top

  NameDescription
Public methodDispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodBindParameter Register that the given parameter type on an Action is to be bound using the model binder. (Defined by HttpConfigurationExtensions.)
Top

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