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.
- resolve
Type: System.Func<T, TResult>
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.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
- 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.