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
id
Type: System.StringThe ID of the error.
title
Type: System.StringThe title of the error.
description
Type: System.StringThe description of the error.
level
Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.ErrorLevelThe ErrorLevel enumeration object that defines the severity level of the error. The severity level can be Error or Warning.
Exceptions
Exception | Condition |
---|---|
ArgumentException | One or more of the parameters are not valid. |
ArgumentNullException | id or title are null. |
ArgumentOutOfRangeException |
See Also
ErrorInfo Overload
ErrorInfo Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top