HttpError Class
Defines a serializable container for arbitrary error information.
Inheritance Hierarchy
System.Object
System.Collections.Generic.Dictionary<String, Object>
System.Web.Http.HttpError
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public NotInheritable Class HttpError _
Inherits Dictionary(Of String, Object) _
Implements IXmlSerializable
'Usage
Dim instance As HttpError
public sealed class HttpError : Dictionary<string, Object>,
IXmlSerializable
public ref class HttpError sealed : public Dictionary<String^, Object^>,
IXmlSerializable
[<SealedAttribute>]
type HttpError =
class
inherit Dictionary<string, Object>
interface IXmlSerializable
end
public final class HttpError extends Dictionary<String, Object> implements IXmlSerializable
The HttpError type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpError() | Initializes a new instance of the HttpError class. | |
HttpError(String) | Initializes a new instance of the HttpError class containing error message message. | |
HttpError(Exception, Boolean) | Initializes a new instance of the HttpError class for exception. | |
HttpError(ModelStateDictionary, Boolean) | Initializes a new instance of the HttpError class for modelState. |
Top
Properties
Name | Description | |
---|---|---|
Comparer | (Inherited from Dictionary<String, Object>.) | |
Count | (Inherited from Dictionary<String, Object>.) | |
Item | (Inherited from Dictionary<String, Object>.) | |
Keys | (Inherited from Dictionary<String, Object>.) | |
Message | The error message associated with this instance. | |
Values | (Inherited from Dictionary<String, Object>.) |
Top
Methods
Name | Description | |
---|---|---|
Add | (Inherited from Dictionary<String, Object>.) | |
Clear | (Inherited from Dictionary<String, Object>.) | |
ContainsKey | (Inherited from Dictionary<String, Object>.) | |
ContainsValue | (Inherited from Dictionary<String, Object>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | (Inherited from Dictionary<String, Object>.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Security Critical. (Inherited from Dictionary<String, Object>.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
OnDeserialization | (Inherited from Dictionary<String, Object>.) | |
Remove | (Inherited from Dictionary<String, Object>.) | |
ToString | (Inherited from Object.) | |
TryGetValue | (Inherited from Dictionary<String, Object>.) |
Top
Explicit Interface Implementations
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.