Share via


ITestBase.CreateSharedStepReference Method

If this object is a test case, creates a new shared step reference, which gives access to another set of actions.

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

Syntax

'Declaration
Function CreateSharedStepReference As ISharedStepReference
ISharedStepReference CreateSharedStepReference()
ISharedStepReference^ CreateSharedStepReference()
abstract CreateSharedStepReference : unit -> ISharedStepReference 
function CreateSharedStepReference() : ISharedStepReference

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ISharedStepReference
The new shared step reference.

Exceptions

Exception Condition
TestManagementInvalidOperationException

This ITestBase object is not a test case.

Remarks

Callers must add this to ITestBase.Actions and call ITestBase.Save to commit this to the server.

.NET Framework Security

See Also

Reference

ITestBase Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

ISharedStepReference