IDeploymentConfigurationDictionary.Add 方法 (String, IEnumerable<String>, IEnumerable<String>)
向字典添加部署配置。 使用此方法添加的部署配置未存储到项目文件或用户文件中。
命名空间: Microsoft.VisualStudio.SharePoint.Deployment
程序集: Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
Function Add ( _
name As String, _
deploymentSteps As IEnumerable(Of String), _
retractionSteps As IEnumerable(Of String) _
) As IDeploymentConfiguration
IDeploymentConfiguration Add(
string name,
IEnumerable<string> deploymentSteps,
IEnumerable<string> retractionSteps
)
参数
- name
类型:System.String
部署配置的名称。
- deploymentSteps
类型:System.Collections.Generic.IEnumerable<String>
部署配置中作为部署操作一部分的步骤。
- retractionSteps
类型:System.Collections.Generic.IEnumerable<String>
部署配置中作为撤消操作一部分的步骤。
返回值
类型:Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConfiguration
创建的部署配置。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。