Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpError Class

HttpError Class

Defines a serializable container for arbitrary error information.

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

public ref class HttpError sealed : public Dictionary<String^, Object^>, 
	IXmlSerializable

The HttpError type exposes the following members.

  NameDescription
Public methodHttpError() Initializes a new instance of the HttpError class.
Public methodHttpError(String) Initializes a new instance of the HttpError class containing error message message.
Public methodHttpError(Exception, Boolean) Initializes a new instance of the HttpError class for exception.
Public methodHttpError(ModelStateDictionary, Boolean) Initializes a new instance of the HttpError class for modelState.
Top

  NameDescription
Public propertyComparer (Inherited from Dictionary<String, Object>.)
Public propertyCount (Inherited from Dictionary<String, Object>.)
Public propertyItem (Inherited from Dictionary<String, Object>.)
Public propertyKeys (Inherited from Dictionary<String, Object>.)
Public propertyMessage The error message associated with this instance.
Public propertyValues (Inherited from Dictionary<String, Object>.)
Top

  NameDescription
Public methodAdd (Inherited from Dictionary<String, Object>.)
Public methodClear (Inherited from Dictionary<String, Object>.)
Public methodContainsKey (Inherited from Dictionary<String, Object>.)
Public methodContainsValue (Inherited from Dictionary<String, Object>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from Dictionary<String, Object>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Dictionary<String, Object>.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOnDeserialization (Inherited from Dictionary<String, Object>.)
Public methodRemove (Inherited from Dictionary<String, Object>.)
Public methodToString (Inherited from Object.)
Public methodTryGetValue (Inherited from Dictionary<String, Object>.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIXmlSerializable::GetSchemaThis method is reserved and should not be used.
Explicit interface implemetationPrivate methodIXmlSerializable::ReadXmlGenerates an HttpError instance from its XML representation.
Explicit interface implemetationPrivate methodIXmlSerializable::WriteXmlConverts an HttpError instance into its XML representation.
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>::Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary::Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>::Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary::Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>::CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection::CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIEnumerable<KeyValuePair<TKey, TValue>>::GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIEnumerable::GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary::GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary::IsFixedSize (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection<KeyValuePair<TKey, TValue>>::IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary::IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection::IsSynchronized (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary::Item (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary<TKey, TValue>::Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertySystem#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary::Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>::Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary::Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection::SyncRoot (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary<TKey, TValue>::Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertySystem#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary::Values (Inherited from Dictionary<String, Object>.)
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:
© 2015 Microsoft