Partager via


InvalidWorkItemTypeException Constructor (String, Exception, String, String)

Initializes a new instance of the InvalidWorkItemTypeException class by using the provided error message, inner exception, expected work item type, and actual work item type.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
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
)

Parameters

  • message
    Type: String

    The error message.

  • innerException
    Type: Exception

    The original exception that caused this exception.

  • expected
    Type: String

    The expected work item type.

  • actual
    Type: String

    The actual work item type.

.NET Framework Security

See Also

Reference

InvalidWorkItemTypeException Class

InvalidWorkItemTypeException Overload

Microsoft.TeamFoundation.TestManagement.Client Namespace