Partager via


TeamFoundationDeploymentService.CreateBuildDeployment Method

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

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

Syntax

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

Parameters

  • deploymentUri
    Type: System.String

    The build Uri that runs the deployment.

  • sourceUri
    Type: System.String

    The build Uri for the build being deployed.

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationDeploymentService Class

Microsoft.TeamFoundation.Build.Server Namespace