UnsupportedMediaTypeException Class
Defines an exception type for signalling that a request's media type was not supported.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Inheritance Hierarchy
System.Object
System.Exception
System.Net.Http.UnsupportedMediaTypeException
Syntax
public class UnsupportedMediaTypeException : Exception
public ref class UnsupportedMediaTypeException : Exception
type UnsupportedMediaTypeException =
class
inherit Exception
end
Public Class UnsupportedMediaTypeException
Inherits Exception
Constructors
Name | Description | |
---|---|---|
UnsupportedMediaTypeException(String, MediaTypeHeaderValue) | Initializes a new instance of the UnsupportedMediaTypeException class. |
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) |
|
HelpLink | (Inherited from Exception.) |
|
HResult | (Inherited from Exception.) |
|
InnerException | (Inherited from Exception.) |
|
MediaType | Gets or sets the media type. |
|
Message | (Inherited from Exception.) |
|
Source | (Inherited from Exception.) |
|
StackTrace | (Inherited from Exception.) |
|
TargetSite | (Inherited from Exception.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetBaseException() | (Inherited from Exception.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetObjectData(SerializationInfo, StreamingContext) | (Inherited from Exception.) |
|
GetType() | (Inherited from Exception.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Exception.) |
Events
Name | Description | |
---|---|---|
SerializeObjectState | (Inherited from Exception.) |
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
Return to top