初始化 GeneratorUserException 类的新实例。 一个包含指定错误消息、对造成此异常的内部异常的引用、严重级别和错误类型的实例。
命名空间:  Microsoft.Data.Schema.Tools.DataGenerator
程序集:  Microsoft.Data.Schema.Tools(在 Microsoft.Data.Schema.Tools.dll 中)
语法
声明
Public Sub New ( _
    message As String, _
    innerException As Exception, _
    severity As Severity, _
    errorType As ErrorType _
)
public GeneratorUserException(
    string message,
    Exception innerException,
    Severity severity,
    ErrorType errorType
)
public:
GeneratorUserException(
    String^ message, 
    Exception^ innerException, 
    Severity severity, 
    ErrorType errorType
)
new : 
        message:string * 
        innerException:Exception * 
        severity:Severity * 
        errorType:ErrorType -> GeneratorUserException
public function GeneratorUserException(
    message : String, 
    innerException : Exception, 
    severity : Severity, 
    errorType : ErrorType
)
参数
- message
 类型:System.String
 一个 String,其中包含表明错误的消息。
- innerException
 类型:System.Exception
 导致当前异常的 Exception。
- severity
 类型:Microsoft.Data.Schema.Tools.DataGenerator.Severity
 Severity 枚举的成员。
- errorType
 类型:Microsoft.Data.Schema.Tools.DataGenerator.ErrorType
 ErrorType 枚举的成员。
备注
可能的严重级别有 Error()、Warning() 和 Information()。
可能的错误类型有 Configuration()、DataAccess() 和 Unknown()。
作为上一异常直接结果而引发的异常应在 InnerException 属性中包括对上一异常的引用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Data.Schema.Tools.DataGenerator 命名空间
Severity
ErrorType