Compartilhar via


IBuildAgent.CopyTo Method

Note: This API is now obsolete.

Creates a copy of the build agent in the specified team project.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'Declaração
<ObsoleteAttribute("This method has been deprecated. Please remove all references.",  _
    True)> _
Function CopyTo ( _
    teamProject As String _
) As IBuildAgent
[ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgent CopyTo(
    string teamProject
)
[ObsoleteAttribute(L"This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgent^ CopyTo(
    String^ teamProject
)
[<ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)>]
abstract CopyTo : 
        teamProject:string -> IBuildAgent 
function CopyTo(
    teamProject : String
) : IBuildAgent

Parameters

  • teamProject
    Type: System.String
    A string that contains the name of the team project in which the copy is created.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildAgent
Returns an IBuildAgent for the new build agent.

Remarks

To save the new agent to the build computer, call the SaveBuildAgents method.

.NET Framework Security

See Also

Reference

IBuildAgent Interface

Microsoft.TeamFoundation.Build.Client Namespace