Share via


IDeploymentConfigurationDictionary.Add Method (String, IEnumerable<String>, IEnumerable<String>)

Adds a deployment configuration to the dictionary. The deployment configuration added by using this method is not stored in the project file or user file.

Namespace:  Microsoft.VisualStudio.SharePoint.Deployment
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
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
)

Parameters

  • name
    Type: String

    Name of the deployment configuration.

  • deploymentSteps
    Type: IEnumerable<String>

    Steps that are part of the deploy operation in the deployment configuration.

  • retractionSteps
    Type: IEnumerable<String>

    Steps that are part of the retract operation in the deployment configuration.

Return Value

Type: Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConfiguration
The deployment configuration that was created.

.NET Framework Security

See Also

Reference

IDeploymentConfigurationDictionary Interface

Add Overload

Microsoft.VisualStudio.SharePoint.Deployment Namespace