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: StringName 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.