UriPathExtensionMapping Class

Provides MediaTypeHeaderValues from path extensions appearing in a Uri.

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Net.Http.Formatting.UriPathExtensionMapping

Namespace:  System.Net.Http.Formatting
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class UriPathExtensionMapping _
    Inherits MediaTypeMapping
'Usage
Dim instance As UriPathExtensionMapping
public class UriPathExtensionMapping : MediaTypeMapping
public ref class UriPathExtensionMapping : public MediaTypeMapping
type UriPathExtensionMapping =  
    class
        inherit MediaTypeMapping
    end
public class UriPathExtensionMapping extends MediaTypeMapping

The UriPathExtensionMapping type exposes the following members.

Constructors

  Name Description
Public method UriPathExtensionMapping(String, MediaTypeHeaderValue) Initializes a new instance of the UriPathExtensionMapping class.
Public method UriPathExtensionMapping(String, String) Initializes a new instance of the UriPathExtensionMapping class.

Top

Properties

  Name Description
Public property MediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public property UriPathExtension Gets the Uri path extension.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TryMatchMediaType Returns a value indicating whether this UriPathExtensionMapping instance can provide a MediaTypeHeaderValue for the Uri of request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).)

Top

Fields

  Name Description
Public fieldStatic member UriPathExtensionKey The Uri path extension key.

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.

See Also

Reference

System.Net.Http.Formatting Namespace