Condividi tramite


Metodo DeploymentService.CreateDeploymentEnvironment

Creare un nuovo ambiente di distribuzione

Spazio dei nomi:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • friendlyName
    Tipo: System.String
    Un nome descrittivo facoltativo per l'ambiente
  • description
    Tipo: System.String
    Una descrizione facoltativa per l'ambiente

Valore restituito

Tipo: Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentMetadata
Il DeploymentEnvironmentMetadata per il nuovo ambiente

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DeploymentService Classe

Spazio dei nomi Microsoft.TeamFoundation.Build.Client