Share via


IDeploymentConflictCollection.Add Method

Adds a new IDeploymentConflict object to this collection.

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

Syntax

'Declaration
Function Add ( _
    description As String, _
    resolve As Func, _
    promptBeforeResolve As Boolean _
) As IDeploymentConflict
IDeploymentConflict Add(
    string description,
    Func resolve,
    bool promptBeforeResolve
)

Parameters

  • description
    Type: System.String
    The description of the deployment conflict.
  • promptBeforeResolve
    Type: System.Boolean
    true if the user should be prompted before the resolve delegate is executed; otherwise, false.

Return Value

Type: Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict
A new object that represents the deployment conflict.

Remarks

For an example that demonstrates how to create an IDeploymentConflict object to handle a deployment conflict, see How to: Handle Deployment Conflicts.

.NET Framework Security

See Also

Reference

IDeploymentConflictCollection Interface

Microsoft.VisualStudio.SharePoint.Deployment Namespace