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 对象来处理部署冲突的示例,请参阅 如何:处理部署冲突

适用于