Partager via


ErrorInfo Class

 

Provides information about an error that has occurred.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Administration.ObjectModel.ErrorInfo

Syntax

[SerializableAttribute]
public sealed class ErrorInfo : IEquatable<ErrorInfo>
[SerializableAttribute]
public ref class ErrorInfo sealed : IEquatable<ErrorInfo^>
<SerializableAttribute>
Public NotInheritable Class ErrorInfo
    Implements IEquatable(Of ErrorInfo)

Constructors

Name Description
System_CAPS_pubmethod ErrorInfo(String, Exception)

Initializes a new instance of the ErrorInfo class with the specified title and the specified Exception.

System_CAPS_pubmethod ErrorInfo(String, String, String)

Initializes a new instance of the ErrorInfo class with the specified ID, title, and description.

System_CAPS_pubmethod ErrorInfo(String, String, String, ErrorLevel)

Initializes a new instance of the ErrorInfo class with the specified ID, title, description, and ErrorLevel enumeration object.

Properties

Name Description
System_CAPS_pubproperty Description

Gets the description of the error.

System_CAPS_pubproperty ErrorLevel

Gets the severity level of the error.

System_CAPS_pubproperty Id

Gets the ID of the error.

System_CAPS_pubproperty Resolution

Gets or sets the explanation of how to resolve the error.

System_CAPS_pubproperty Title

Gets the title of the error.

Methods

Name Description
System_CAPS_pubmethod Equals(ErrorInfo)

Compares the ID of one ErrorInfo object to the ID of another ErrorInfo object.

System_CAPS_pubmethod Equals(Object)

Calls the Equals method with the specified object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethod GetHashCode()

Returns a hash code for the ErrorInfo object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top