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