語言

IDeploymentConflictCollection.Add 方法

定義

將新 IDeploymentConflict 物件加入至這個集合。

public:
 Microsoft::VisualStudio::SharePoint::Deployment::IDeploymentConflict ^ Add(System::String ^ description, Func<Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^, bool> ^ resolve, bool promptBeforeResolve);
public Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict Add(string description, Func<Microsoft.VisualStudio.SharePoint.ISharePointProjectItem,bool> resolve, bool promptBeforeResolve);
abstract member Add : string * Func<Microsoft.VisualStudio.SharePoint.ISharePointProjectItem, bool> * bool -> Microsoft.VisualStudio.SharePoint.Deployment.IDeploymentConflict
Public Function Add (description As String, resolve As Func(Of ISharePointProjectItem, Boolean), promptBeforeResolve As Boolean) As IDeploymentConflict

參數

description
String

部署衝突的描述。

resolve
Func<ISharePointProjectItem,Boolean>

可以解決衝突的委派。 委派必須有一個布林傳回值和類型為 ISharePointProjectItem 的單一參數。

promptBeforeResolve
Boolean

true 如果在執行委派之前 resolve 應該提示使用者,則為 ,否則為 false。

傳回

表示部署衝突的新物件。

備註

如需示範如何建立 IDeploymentConflict 對象來處理部署衝突的範例,請參閱 如何:處理部署衝突。

適用於