This documentation is archived and is not being maintained.
DeploymentService::CreateDeploymentEnvironment Method
Visual Studio 2013
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::DeploymentEnvironmentMetadataThe DeploymentEnvironmentMetadata for the new enviornment
- 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.
Show: