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
)
参数
- message
类型:System.String
一个 String,其中包含表明错误的消息。
- severity
类型:Microsoft.Data.Schema.Tools.DataGenerator.Severity
Severity 枚举的成员。
备注
可能的严重级别有 Error()、Warning() 和 Information()。
默认情况下,此默认构造函数将 ErrorType() 属性设置为 Unknown()。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Data.Schema.Tools.DataGenerator 命名空间
Severity
ErrorType()
ErrorType