IDeploymentConflictCollection.Add Method

Definition

Adds a new IDeploymentConflict object to this collection.

public:
 Microsoft::VisualStudio::SharePoint::Deployment::IDeploymentConflict ^ Add(System::String ^ description, Func<Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^, bool> ^ resolve, bool promptBeforeResolve);
public Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict Add (string description, Func<Microsoft.VisualStudio.SharePoint.ISharePointProjectItem,bool> resolve, bool promptBeforeResolve);
abstract member Add : string * Func<Microsoft.VisualStudio.SharePoint.ISharePointProjectItem, bool> * bool -> Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict
Public Function Add (description As String, resolve As Func(Of ISharePointProjectItem, Boolean), promptBeforeResolve As Boolean) As IDeploymentConflict

Parameters

description
String

The description of the deployment conflict.

resolve
Func<ISharePointProjectItem,Boolean>

A delegate that can resolve the conflict. The delegate must have a Boolean return value and a single parameter of type ISharePointProjectItem.

promptBeforeResolve
Boolean

true if the user should be prompted before the resolve delegate is executed; otherwise, false.

Returns

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.

Applies to