ExpectedSqlExceptionAttribute 构造函数 (String)
初始化 ExpectedSqlExceptionAttribute 类的新实例。
命名空间: Microsoft.Data.Schema.UnitTesting
程序集: Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)
语法
声明
Public Sub New ( _
noExceptionMessage As String _
)
public ExpectedSqlExceptionAttribute(
string noExceptionMessage
)
public:
ExpectedSqlExceptionAttribute(
String^ noExceptionMessage
)
new :
noExceptionMessage:string -> ExpectedSqlExceptionAttribute
public function ExpectedSqlExceptionAttribute(
noExceptionMessage : String
)
参数
- noExceptionMessage
类型:System.String
未引发异常时的默认错误消息。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
ExpectedSqlExceptionAttribute 类
ExpectedSqlExceptionAttribute 重载