DeploymentService.CreateDeploymentEnvironment Method

Create a new Deployment Environment

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

Syntax

'Declaration
Public Function CreateDeploymentEnvironment ( _
    name As String, _
    teamProject As String, _
    connectedServiceName As String, _
    environmentKind As DeploymentEnvironmentKind, _
    friendlyName As String, _
    description As String, _
    environmentProperties As Dictionary(Of String, String) _
) As DeploymentEnvironmentMetadata
public DeploymentEnvironmentMetadata CreateDeploymentEnvironment(
    string name,
    string teamProject,
    string connectedServiceName,
    DeploymentEnvironmentKind environmentKind,
    string friendlyName,
    string description,
    Dictionary<string, string> environmentProperties
)
public:
DeploymentEnvironmentMetadata^ CreateDeploymentEnvironment(
    String^ name, 
    String^ teamProject, 
    String^ connectedServiceName, 
    DeploymentEnvironmentKind environmentKind, 
    String^ friendlyName, 
    String^ description, 
    Dictionary<String^, String^>^ environmentProperties
)
member CreateDeploymentEnvironment : 
        name:string * 
        teamProject:string * 
        connectedServiceName:string * 
        environmentKind:DeploymentEnvironmentKind * 
        friendlyName:string * 
        description:string * 
        environmentProperties:Dictionary<string, string> -> DeploymentEnvironmentMetadata
public function CreateDeploymentEnvironment(
    name : String, 
    teamProject : String, 
    connectedServiceName : String, 
    environmentKind : DeploymentEnvironmentKind, 
    friendlyName : String, 
    description : String, 
    environmentProperties : Dictionary<String, String>
) : DeploymentEnvironmentMetadata

Parameters

  • friendlyName
    Type: System.String

    An optional friendly name for the environment

  • description
    Type: System.String

    An optional description for the environment

Return Value

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

.NET Framework Security

See Also

Reference

DeploymentService Class

Microsoft.TeamFoundation.Build.Client Namespace