共用方式為


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 物件。

如需範例,請參閱 HOW TO:處理部署衝突

請參閱

參考

Microsoft.VisualStudio.SharePoint.Deployment 命名空間