HttpConfiguration Class
Configuration of HttpServer instances.
Inheritance Hierarchy
System.Object
System.Web.Http.HttpConfiguration
System.Web.Http.SelfHost.HttpSelfHostConfiguration
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class HttpConfiguration _
Implements IDisposable
'Usage
Dim instance As HttpConfiguration
public class HttpConfiguration : IDisposable
public ref class HttpConfiguration : IDisposable
type HttpConfiguration =
class
interface IDisposable
end
public class HttpConfiguration implements IDisposable
The HttpConfiguration type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
HttpConfiguration() | Initializes a new instance of the HttpConfiguration class. |
![]() |
HttpConfiguration(HttpRouteCollection) | Initializes a new instance of the HttpConfiguration class with an HTTP route collection. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
DependencyResolver | Gets or sets the dependency resolver associated with thisinstance. |
![]() |
Filters | Gets the list of filters that apply to all requests served using this HttpConfiguration instance. |
![]() |
Formatters | Gets the media-type formatters for this instance. |
![]() |
IncludeErrorDetailPolicy | Gets or sets a value indicating whether error details should be included in error messages. |
![]() |
Initializer | Gets or sets the action that will perform final initialization of the HttpConfiguration instance before it is used to process requests. |
![]() |
MessageHandlers | Gets 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. |
![]() |
ParameterBindingRules | The collection of rules for how parameters should be bound. |
![]() |
Properties | Gets the properties associated with this instance. |
![]() |
Routes | Gets the HttpRouteCollection associated with this HttpConfiguration instance. |
![]() |
Services | Gets the container of default services associated with this instance. |
![]() |
VirtualPathRoot | Gets the root virtual path. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() |
Dispose(Boolean) | Releases the unmanaged resources that are used by the object and, optionally, releases the managed resources. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
![]() |
BindParameter | Register that the given parameter type on an Action is to be bound using the model binder. (Defined by HttpConfigurationExtensions.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.