GeneratorUserException 构造函数 (String, Severity)

使用所提供的错误消息和严重级别设置初始化 GeneratorUserException 类的新实例。

命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    severity As Severity _
)
public GeneratorUserException(
    string message,
    Severity severity
)
public:
GeneratorUserException(
    String^ message, 
    Severity severity
)
new : 
        message:string * 
        severity:Severity -> GeneratorUserException
public function GeneratorUserException(
    message : String, 
    severity : Severity
)

参数

备注

可能的严重级别有 Error()、Warning() 和 Information()。

默认情况下,此默认构造函数将 ErrorType() 属性设置为 Unknown()。

.NET Framework 安全性

请参见

参考

GeneratorUserException 类

GeneratorUserException 重载

Microsoft.Data.Schema.Tools.DataGenerator 命名空间

Severity

ErrorType()

ErrorType