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 名前空間