RequestContextExtensions Class
Represents the RequestContext extension methods that call directly into the registered FormatHelper.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Inheritance Hierarchy
System.Object
Microsoft.Web.Mvc.Resources.RequestContextExtensions
Syntax
public static class RequestContextExtensions
[ExtensionAttribute]
public ref class RequestContextExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type RequestContextExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class RequestContextExtensions
Methods
Name | Description | |
---|---|---|
GetRequestFormat(RequestContext) | Returns the format of a given request context. |
|
GetResponseFormats(RequestContext) | Returns the preferred content type to use for the response, based on the request. |
|
IsBrowserRequest(RequestContext) | Determines whether the specified HTTP request was sent by a Browser. |
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.
See Also
Microsoft.Web.Mvc.Resources Namespace
Return to top