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 重载

Microsoft.Data.Schema.UnitTesting 命名空间

ExpectedSqlExceptionAttribute