Partager via


ErrorInfo Constructor (String, String, String, ErrorLevel)

 

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

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

Syntax

public ErrorInfo(
    string id,
    string title,
    string description,
    ErrorLevel level
)
public:
ErrorInfo(
    String^ id,
    String^ title,
    String^ description,
    ErrorLevel level
)
Public Sub New (
    id As String,
    title As String,
    description As String,
    level As ErrorLevel
)

Parameters

Exceptions

Exception Condition
ArgumentException

One or more of the parameters are not valid.

ArgumentNullException

id or title are null.

ArgumentOutOfRangeException

level is not defined as either Error or Warning.

See Also

ErrorInfo Overload
ErrorInfo Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top