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
新环境的DeploymentEnvironmentMetadata
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。