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)
System.Object
Microsoft.Web.Mvc.Resources.RequestContextExtensions
public static class RequestContextExtensions
[ExtensionAttribute]
public ref class RequestContextExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type RequestContextExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class RequestContextExtensions
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. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Microsoft.Web.Mvc.Resources Namespace
Return to top