使用提供的錯誤訊息、預期工作項目類型和實際工作項目類型,初始化 InvalidWorkItemTypeException 類別的新執行個體。
命名空間: Microsoft.TeamFoundation.TestManagement.Client
組件: Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
語法
'宣告
Public Sub New ( _
message As String, _
expected As String, _
actual As String _
)
public InvalidWorkItemTypeException(
string message,
string expected,
string actual
)
public:
InvalidWorkItemTypeException(
String^ message,
String^ expected,
String^ actual
)
new :
message:string *
expected:string *
actual:string -> InvalidWorkItemTypeException
public function InvalidWorkItemTypeException(
message : String,
expected : String,
actual : String
)
參數
- message
型別:System.String
錯誤訊息。
- expected
型別:System.String
預期工作項目類型。
- actual
型別:System.String
實際工作項目類型。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
InvalidWorkItemTypeException 類別