Delen via


DeploymentService.CreateBuildDeployment Method

Mark build as a deployment and the associated build being deployed.

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

Syntax

'Declaration
Public Function CreateBuildDeployment ( _
    deploymentUri As Uri, _
    sourceUri As Uri, _
    environmentName As String _
) As BuildDeployment
public BuildDeployment CreateBuildDeployment(
    Uri deploymentUri,
    Uri sourceUri,
    string environmentName
)
public:
BuildDeployment^ CreateBuildDeployment(
    Uri^ deploymentUri, 
    Uri^ sourceUri, 
    String^ environmentName
)
member CreateBuildDeployment : 
        deploymentUri:Uri * 
        sourceUri:Uri * 
        environmentName:string -> BuildDeployment
public function CreateBuildDeployment(
    deploymentUri : Uri, 
    sourceUri : Uri, 
    environmentName : String
) : BuildDeployment

Parameters

  • deploymentUri
    Type: System.Uri

    The build Uri that runs the deployment.

  • sourceUri
    Type: System.Uri

    The build Uri for the build being deployed.

Return Value

Type: Microsoft.TeamFoundation.Build.Client.BuildDeployment
A BuildDeployment that contains basic information about the deployment build and the source build.

.NET Framework Security

See Also

Reference

DeploymentService Class

Microsoft.TeamFoundation.Build.Client Namespace