Share via


ITestManagementTeamProject.CreateFromWorkItem Method

Returns an object that is derived from the ITestBase interface that can be used in this project.

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

Syntax

'Declaration
Function CreateFromWorkItem ( _
    workItem As WorkItem _
) As ITestBase
ITestBase CreateFromWorkItem(
    WorkItem workItem
)
ITestBase^ CreateFromWorkItem(
    WorkItem^ workItem
)
abstract CreateFromWorkItem : 
        workItem:WorkItem -> ITestBase
function CreateFromWorkItem(
    workItem : WorkItem
) : ITestBase

Parameters

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestBase
A derived test base object.

Exceptions

Exception Condition
ArgumentInvalidException

The work item type is unknown.

.NET Framework Security

See Also

Reference

ITestManagementTeamProject Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestBase

WorkItem