Compartilhar via


Método DeploymentService.CreateDeploymentEnvironment

Crie um novo ambiente de implantação

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

Sintaxe

'Declaração
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
)

Parâmetros

  • friendlyName
    Tipo: System.String
    Um nome amigável opcional para o ambiente
  • description
    Tipo: System.String
    Uma descrição opcional para o ambiente

Valor de retorno

Tipo: Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentMetadata
O DeploymentEnvironmentMetadata para o novo ambiente

Segurança do .NET Framework

Consulte também

Referência

DeploymentService Classe

Namespace Microsoft.TeamFoundation.Build.Client