Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides MediaTypeHeaderValues from path extensions appearing in a Uri.
Namespace: System.Net.Http.Formatting
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Net.Http.Formatting.MediaTypeMapping
System.Net.Http.Formatting.UriPathExtensionMapping
Syntax
public class UriPathExtensionMapping : MediaTypeMapping
public ref class UriPathExtensionMapping : MediaTypeMapping
type UriPathExtensionMapping =
class
inherit MediaTypeMapping
end
Public Class UriPathExtensionMapping
Inherits MediaTypeMapping
Constructors
Name | Description | |
---|---|---|
![]() |
UriPathExtensionMapping(String, MediaTypeHeaderValue) | Initializes a new instance of the UriPathExtensionMapping class. |
![]() |
UriPathExtensionMapping(String, String) | Initializes a new instance of the UriPathExtensionMapping class. |
Properties
Name | Description | |
---|---|---|
![]() |
MediaType | Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.) |
![]() |
UriPathExtension | Gets the Uri path extension. |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
![]() |
TryMatchMediaType(HttpRequestMessage) | Returns a value indicating whether this UriPathExtensionMapping instance can provide a MediaTypeHeaderValue for the Uri of request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).) |
Fields
Name | Description | |
---|---|---|
![]() ![]() |
UriPathExtensionKey | The Uri path extension key. |
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
System.Net.Http.Formatting Namespace
Return to top