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
<ClientServiceMethodAttribute(AsyncPattern := True, SyncPattern := True)> _
<WebMethodAttribute> _
Public Function CreateBuildDeployment ( _
deploymentUri As String, _
sourceUri As String, _
environmentName As String _
) As BuildDeployment
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public BuildDeployment CreateBuildDeployment(
string deploymentUri,
string sourceUri,
string environmentName
)
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public:
BuildDeployment^ CreateBuildDeployment(
String^ deploymentUri,
String^ sourceUri,
String^ environmentName
)
[<ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)>]
[<WebMethodAttribute>]
member CreateBuildDeployment :
deploymentUri:string *
sourceUri:string *
environmentName:string -> BuildDeployment
public function CreateBuildDeployment(
deploymentUri : String,
sourceUri : String,
environmentName : String
) : BuildDeployment
Parameters
deploymentUri
Type: System.StringThe build URI that is running the deployment.
sourceUri
Type: System.StringThe build URI that has the source build being deployed.
environmentName
Type: System.StringThe name of the environment being deployed.
Return Value
Type: Microsoft.TeamFoundation.Build.Server.BuildDeployment
The BuildDeployment for the new deployment
.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.