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 多載