更新: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 物件。
如需範例,請參閱 HOW TO:處理部署衝突。
請參閱
參考
Microsoft.VisualStudio.SharePoint.Deployment 命名空間
變更記錄
日期 |
記錄 |
原因 |
|---|---|---|
|
2010 年 5 月 |
加入新的備註。 |
資訊加強。 |
.gif)