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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
deploymentUri
Type: System.StringThe build Uri that runs the deployment.
sourceUri
Type: System.StringThe build Uri for the build being deployed.
- environmentName
Type: System.String
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.