ITestEnvironmentHelper.Register Method (IEnumerable<ITestEnvironment>)
Registers the provided test environment objects with the team project collection.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
void Register(
IEnumerable<ITestEnvironment> testEnvironments
)
void Register(
IEnumerable<ITestEnvironment^>^ testEnvironments
)
abstract Register :
testEnvironments:IEnumerable<ITestEnvironment> -> unit
Sub Register (
testEnvironments As IEnumerable(Of ITestEnvironment)
)
Parameters
testEnvironments
Type: System.Collections.Generic.IEnumerable<ITestEnvironment>A list of ITestEnvironment objects.
Exceptions
Exception | Condition |
---|---|
TestManagementInvalidOperationException | One or more test environments are already registered or are missing values for either the TeamProject or TestController properties. |
See Also
TeamProject
TestController
ITestEnvironmentHelper Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top