Share via


FormatHelper Class

 

Base class for content negotiation support

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.Resources.FormatHelper
    Microsoft.Web.Mvc.Resources.DefaultFormatHelper

Syntax

public abstract class FormatHelper
public ref class FormatHelper abstract 
[<AbstractClass>]
type FormatHelper = class end
Public MustInherit Class FormatHelper

Constructors

Name Description
System_CAPS_protmethod FormatHelper()

Initializes a new instance of the FormatHelper class.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetRequestFormat(RequestContext)

Returns the ContentType of a given request.

System_CAPS_pubmethod GetResponseFormats(RequestContext)

Returns a collection of ContentType instances that can be used to render a response to a given request, sorted in priority order.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsBrowserRequest(RequestContext)

Determines whether the specified HTTP request was sent by a Browser.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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