共用方式為


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