Share via


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
System_CAPS_pubmethodSystem_CAPS_static GetRequestFormat(RequestContext)

Returns the format of a given request context.

System_CAPS_pubmethodSystem_CAPS_static GetResponseFormats(RequestContext)

Returns the preferred content type to use for the response, based on the request.

System_CAPS_pubmethodSystem_CAPS_static 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