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.UriThe build Uri that runs the deployment.
sourceUri
Type: System.UriThe build Uri for the build being deployed.
- environmentName
Type: System.String
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
- 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.