IDeploymentConflictCollection Interface
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a collection of IDeploymentConflict objects. Each IDeploymentConflict represents a conflict between items being deployed by a SharePoint project item and items on the SharePoint site.
Namespace: Microsoft.VisualStudio.SharePoint.Deployment
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Public Interface IDeploymentConflictCollection _
Inherits IEnumerable(Of IDeploymentConflict), IEnumerable
public interface IDeploymentConflictCollection : IEnumerable<IDeploymentConflict>,
IEnumerable
The IDeploymentConflictCollection type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add | Adds a new IDeploymentConflict object to this collection. | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IDeploymentConflict>.) |
Top
Remarks
An IDeploymentConflictCollection object is returned by the DeploymentStepStartedEventArgs.Conflicts property. If you determine that a deployment conflict exists when a SharePoint project item is being deployed, use the [M:Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add(System.String,System.Func`2,System.Boolean)] method to notify Visual Studio of the conflict and to specify the method that Visual Studio will call to resolve the conflict. The [M:Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add(System.String,System.Func`2,System.Boolean)] method returns an IDeploymentConflict object that represents the new deployment conflict.
For an example, see How to: Handle Deployment Conflicts.