This documentation is archived and is not being maintained.

DeploymentService::CreateDeploymentEnvironment Method

Create a new Deployment Environment

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

public:
DeploymentEnvironmentMetadata^ CreateDeploymentEnvironment(
	String^ name, 
	String^ teamProject, 
	String^ connectedServiceName, 
	DeploymentEnvironmentKind environmentKind, 
	String^ friendlyName, 
	String^ description, 
	Dictionary<String^, String^>^ environmentProperties
)

Parameters

name
Type: System::String

the name of the environment

teamProject
Type: System::String
connectedServiceName
Type: System::String
environmentKind
Type: Microsoft.TeamFoundation.Build.Client::DeploymentEnvironmentKind

The kind of the environment

friendlyName
Type: System::String

An optional friendly name for the environment

description
Type: System::String

An optional description for the environment

environmentProperties
Type: System.Collections.Generic::Dictionary<String, String>

Any environment specific properties

Return Value

Type: Microsoft.TeamFoundation.Build.Client::DeploymentEnvironmentMetadata
The DeploymentEnvironmentMetadata for the new enviornment

Show: