IDeploymentConflictCollection 接口

表示 IDeploymentConflict 对象的集合。每个 IDeploymentConflict 表示 SharePoint 项目项所部署的项与 SharePoint 站点上的项之间的冲突。

命名空间:  Microsoft.VisualStudio.SharePoint.Deployment
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)

语法

声明
Public Interface IDeploymentConflictCollection _
    Inherits IEnumerable(Of IDeploymentConflict), IEnumerable
public interface IDeploymentConflictCollection : IEnumerable<IDeploymentConflict>, 
    IEnumerable

IDeploymentConflictCollection 类型公开以下成员。

方法

  名称 说明
公共方法 Add
公共方法 GetEnumerator() 返回一个循环访问集合的枚举器。 (继承自 IEnumerable<IDeploymentConflict>。)
公共方法 GetEnumerator() 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。)

页首

备注

一个 IDeploymentConflictCollection 对象通过 DeploymentStepStartedEventArgs.Conflicts 属性返回。如果您确定在部署 SharePoint 项目项时存在部署冲突,请使用 [M:Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add(System.String,System.Func`2,System.Boolean)] 方法就冲突通知 Visual Studio,并指定 Visual Studio 将调用来解决冲突的方法。[M:Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflictCollection.Add(System.String,System.Func`2,System.Boolean)] 方法返回表示新部署冲突的 IDeploymentConflict 对象。

有关示例,请参见如何:处理部署冲突

请参见

参考

Microsoft.VisualStudio.SharePoint.Deployment 命名空间