共用方式為


SPAlert.AlertType property

取得或設定警示要套用的物件可以是清單或文件庫、 清單項目或文件或自訂物件的型別。

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

Syntax

'宣告
Public Property AlertType As SPAlertType
    Get
    Set
'用途
Dim instance As SPAlert
Dim value As SPAlertType

value = instance.AlertType

instance.AlertType = value
public SPAlertType AlertType { get; set; }

Property value

Type: Microsoft.SharePoint.SPAlertType
指定警示所套用的項目類型的SPAlertType值。

備註

AlertType屬性需要為新的Alert物件,且不包含預設值。在呼叫Update方法後,就無法變更這個屬性。

請參閱

參照

SPAlert class

SPAlert members

Microsoft.SharePoint namespace