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
)
參數
- name
類型:System.String
環境的名稱。
- teamProject
類型:System.String
- connectedServiceName
類型:System.String
- environmentKind
類型:Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentKind
這種環境
- friendlyName
類型:System.String
選擇性的易記名稱環境
- description
類型:System.String
環境的選擇性描述。
- environmentProperties
類型:System.Collections.Generic.Dictionary<String, String>
任何環境特定的屬性
傳回值
類型:Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentMetadata
新的 enviornment 的 DeploymentEnvironmentMetadata
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。