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
- 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.