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
workItem
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemA WorkItem object.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ITestManagementTeamProject Interface