IDeploymentConflictCollection 接口
更新:2010 年 5 月
表示 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 | 将新的 IDeploymentConflict 对象添加到此集合中。 |
![]() |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<IDeploymentConflict>。) |
![]() |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) |
页首
备注
一个 IDeploymentConflictCollection 对象通过 DeploymentStepStartedEventArgs.Conflicts 属性返回。 如果您确定在部署 SharePoint 项目项时存在部署冲突,请使用 IDeploymentConflictCollection.Add(String, Func<T, TResult>, Boolean) 方法就冲突通知 Visual Studio,并指定 Visual Studio 将调用来解决冲突的方法。 IDeploymentConflictCollection.Add(String, Func<T, TResult>, Boolean) 方法返回表示新部署冲突的 IDeploymentConflict 对象。
有关示例,请参见如何:处理部署冲突。
请参见
参考
Microsoft.VisualStudio.SharePoint.Deployment 命名空间
修订记录
Date |
修订记录 |
原因 |
---|---|---|
2010 年 5 月 |
添加了新注释。 |
信息补充。 |