Freigeben über


UriPathExtensionMapping Constructor (String, String)

Initializes a new instance of the UriPathExtensionMapping class.

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

Syntax

'Declaration
Public Sub New ( _
    uriPathExtension As String, _
    mediaType As String _
)
'Usage
Dim uriPathExtension As String
Dim mediaType As String

Dim instance As New UriPathExtensionMapping(uriPathExtension, _
    mediaType)
public UriPathExtensionMapping(
    string uriPathExtension,
    string mediaType
)
public:
UriPathExtensionMapping(
    String^ uriPathExtension, 
    String^ mediaType
)
new : 
        uriPathExtension:string * 
        mediaType:string -> UriPathExtensionMapping
public function UriPathExtensionMapping(
    uriPathExtension : String, 
    mediaType : String
)

Parameters

  • uriPathExtension
    Type: System.String
    The extension corresponding to mediaType. This value should not include a dot or wildcards.
  • mediaType
    Type: System.String
    The media type that will be returned if uriPathExtension is matched.

See Also

Reference

UriPathExtensionMapping Class

UriPathExtensionMapping Overload

System.Net.Http.Formatting Namespace