共用方式為


DeploymentService.CreateDeploymentEnvironment 方法

建立新的部署環境

命名空間:  Microsoft.TeamFoundation.Build.Client
組件:  Microsoft.TeamFoundation.Build.Client (在 Microsoft.TeamFoundation.Build.Client.dll 中)

語法

'宣告
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
)

參數

  • friendlyName
    類型:System.String
    選擇性的易記名稱環境

傳回值

類型:Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentMetadata
新的 enviornment 的 DeploymentEnvironmentMetadata

.NET Framework 安全性

請參閱

參考

DeploymentService 類別

Microsoft.TeamFoundation.Build.Client 命名空間