Share via


ITestEnvironmentHelper.Register Method

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

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

See Also

Reference

ITestEnvironmentHelper Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

TeamProject

TestController