Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Sub Register ( _
testEnvironments As IEnumerable(Of ITestEnvironment) _
)
void Register(
IEnumerable<ITestEnvironment> testEnvironments
)
void Register(
IEnumerable<ITestEnvironment^>^ testEnvironments
)
abstract Register :
testEnvironments:IEnumerable<ITestEnvironment> -> unit
function Register(
testEnvironments : IEnumerable<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. |
.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
ITestEnvironmentHelper Interface