共用方式為


InvalidWorkItemTypeException 建構函式 (String, Exception, String, String)

使用提供的錯誤訊息、內部例外狀況、預期工作項目類型和實際工作項目類型,初始化 InvalidWorkItemTypeException 類別的新執行個體。

命名空間:  Microsoft.TeamFoundation.TestManagement.Client
組件:  Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

語法

'宣告
Public Sub New ( _
    message As String, _
    innerException As Exception, _
    expected As String, _
    actual As String _
)
public InvalidWorkItemTypeException(
    string message,
    Exception innerException,
    string expected,
    string actual
)
public:
InvalidWorkItemTypeException(
    String^ message, 
    Exception^ innerException, 
    String^ expected, 
    String^ actual
)
new : 
        message:string * 
        innerException:Exception * 
        expected:string * 
        actual:string -> InvalidWorkItemTypeException
public function InvalidWorkItemTypeException(
    message : String, 
    innerException : Exception, 
    expected : String, 
    actual : String
)

參數

  • message
    類型:String

    錯誤訊息。

  • innerException
    類型:Exception

    導致這個例外狀況的原始例外狀況。

  • expected
    類型:String

    預期工作項目類型。

  • actual
    類型:String

    實際工作項目類型。

.NET Framework 安全性

請參閱

參考

InvalidWorkItemTypeException 類別

InvalidWorkItemTypeException 多載

Microsoft.TeamFoundation.TestManagement.Client 命名空間