Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: 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