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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。