使用所提供的错误消息、预期工作项类型和实际工作项类型初始化 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 类