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.StringThe description of the deployment conflict.
resolve
Type: System.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
Type: System.Booleantrue 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
- 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.