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
<WebMethodAttribute> _
<ClientServiceMethodAttribute(AsyncPattern := True, SyncPattern := True)> _
Public Function CreateBuildDeployment ( _
    deploymentUri As String, _
    sourceUri As String, _
    environmentName As String _
) As BuildDeployment
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
public BuildDeployment CreateBuildDeployment(
    string deploymentUri,
    string sourceUri,
    string environmentName
)
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
public:
BuildDeployment^ CreateBuildDeployment(
    String^ deploymentUri, 
    String^ sourceUri, 
    String^ environmentName
)
[<WebMethodAttribute>]
[<ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)>]
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