Export (0) Print
Expand All

UriPathExtensionMapping Class

Provides MediaTypeHeaderValues from path extensions appearing in a Uri.

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)

type UriPathExtensionMapping =  
    class
        inherit MediaTypeMapping
    end

The UriPathExtensionMapping type exposes the following members.

  NameDescription
Public methodUriPathExtensionMapping(String, MediaTypeHeaderValue) Initializes a new instance of the UriPathExtensionMapping class.
Public methodUriPathExtensionMapping(String, String) Initializes a new instance of the UriPathExtensionMapping class.
Top

  NameDescription
Public propertyMediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Public propertyUriPathExtension Gets the Uri path extension.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryMatchMediaType Returns a value indicating whether this UriPathExtensionMapping instance can provide a MediaTypeHeaderValue for the Uri of request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).)
Top

  NameDescription
Public fieldStatic memberUriPathExtensionKeyThe Uri path extension key.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft