共用方式為


SPChangeQuery.Alert property

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

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

Syntax

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

value = instance.Alert

instance.Alert = value
public bool Alert { 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

SPChangeAlert