Partager via


IDeploymentConflictCollection.Add Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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(Of ISharePointProjectItem, Boolean), _
    promptBeforeResolve As Boolean _
) As IDeploymentConflict
IDeploymentConflict Add(
    string description,
    Func<ISharePointProjectItem, bool> 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