共用方式為


SPChangeQuery.Add property

取得或設定指定 [新增物件的變更是否包含在查詢中的Boolean值。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property Add As Boolean
    Get
    Set
'用途
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.Add

instance.Add = value
public bool Add { get; set; }

Property value

Type: System.Boolean
true以包含將物件 ; 加入的變更否則, false。預設值為false。

備註

您可以限制來新增特定的物件上的作業將對應的物件屬性設定為true查詢的結果。例如,下列程式碼建構查詢,以新增提醒的變更。

' Construct a query.
Dim query As New SPChangeQuery(False, False)

' object type 
query.Alert = True

' change type 
query.Add = True
// Construct a query.
SPChangeQuery query = new SPChangeQuery(false, false); 

// object type 
query.Alert = true;

// change type 
query.Add = true;

請參閱

參照

SPChangeQuery class

SPChangeQuery members

Microsoft.SharePoint namespace