Partager via


IDeploymentConflictCollection Interface

Definition

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.

public interface class IDeploymentConflictCollection : System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::SharePoint::Deployment::IDeploymentConflict ^>
public interface IDeploymentConflictCollection : System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict>
type IDeploymentConflictCollection = interface
    interface seq<IDeploymentConflict>
    interface IEnumerable
Public Interface IDeploymentConflictCollection
Implements IEnumerable(Of IDeploymentConflict)
Implements

Remarks

An IDeploymentConflictCollection object is returned by the Microsoft.VisualStudio.SharePoint.DeploymentStepStartedEventArgs.Conflicts property. If you determine that a deployment conflict exists when a SharePoint project item is being deployed, use the Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add method to notify Visual Studio of the conflict and to specify the method that Visual Studio will call to resolve the conflict. The Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add method returns an IDeploymentConflict object that represents the new deployment conflict.

For an example, see How to: Handle Deployment Conflicts.

Methods

Add(String, Func<ISharePointProjectItem,Boolean>, Boolean)

Adds a new IDeploymentConflict object to this collection.

Applies to