GeneratorUserException Constructor (String, Severity)
Initializes an instance of the GeneratorUserException class with a specified error message and severity.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in Microsoft.VisualStudio.TeamSystem.Data.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
severity As Severity _
)
'Usage
Dim message As String
Dim severity As Severity
Dim instance As New GeneratorUserException(message, _
severity)
public GeneratorUserException(
string message,
Severity severity
)
public:
GeneratorUserException(
String^ message,
Severity severity
)
public function GeneratorUserException(
message : String,
severity : Severity
)
Parameters
- message
Type: System.String
A message that describes the error.
- severity
Type: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.Severity
The severity of the error.
Remarks
The possible severities are Error, Warning, and Information.
By default, this constructor sets the ErrorType to Unknown.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
GeneratorUserException Members
GeneratorUserException Overload
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
DataException