Share via


BuildDeploymentWebService.CreateBuildDeployment Method

Create a new deployment.

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

Syntax

'Declaration
<ClientServiceMethodAttribute(AsyncPattern := True, SyncPattern := True)> _
<WebMethodAttribute> _
Public Function CreateBuildDeployment ( _
    deploymentUri As String, _
    sourceUri As String, _
    environmentName As String _
) As BuildDeployment
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public BuildDeployment CreateBuildDeployment(
    string deploymentUri,
    string sourceUri,
    string environmentName
)
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public:
BuildDeployment^ CreateBuildDeployment(
    String^ deploymentUri, 
    String^ sourceUri, 
    String^ environmentName
)
[<ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)>]
[<WebMethodAttribute>]
member CreateBuildDeployment : 
        deploymentUri:string * 
        sourceUri:string * 
        environmentName:string -> BuildDeployment
public function CreateBuildDeployment(
    deploymentUri : String, 
    sourceUri : String, 
    environmentName : String
) : BuildDeployment

Parameters

  • deploymentUri
    Type: System.String

    The build URI that is running the deployment.

  • sourceUri
    Type: System.String

    The build URI that has the source build being deployed.

  • environmentName
    Type: System.String

    The name of the environment being deployed.

Return Value

Type: Microsoft.TeamFoundation.Build.Server.BuildDeployment
The BuildDeployment for the new deployment

.NET Framework Security

See Also

Reference

BuildDeploymentWebService Class

Microsoft.TeamFoundation.Build.Server Namespace