共用方式為


SPAlertCollection.Add method (SPListItem, SPEventType, SPAlertFrequency)

新增提醒至集合的清單項目,根據指定的事件型別和時間間隔的提醒。這個方法多載已被取代。請改用Add(SPListItem, SPEventType, SPAlertFrequency, SPAlertDeliveryChannels)

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

Syntax

'宣告
Public Function Add ( _
    item As SPListItem, _
    eventType As SPEventType, _
    alertFrequency As SPAlertFrequency _
) As Guid
'用途
Dim instance As SPAlertCollection
Dim item As SPListItem
Dim eventType As SPEventType
Dim alertFrequency As SPAlertFrequency
Dim returnValue As Guid

returnValue = instance.Add(item, eventType, _
    alertFrequency)
public Guid Add(
    SPListItem item,
    SPEventType eventType,
    SPAlertFrequency alertFrequency
)

參數

傳回值

Type: System.Guid
新警示的 GUID。

備註

注意

如果您撰寫新的應用程式時,避免使用這個已取代的多載,只針對回溯相容性維護。如果您修改現有的應用程式時,您會移除這項功能的任何相依性,我們強烈建議。

這個多載就會完全Add(SPListItem, SPEventType, SPAlertFrequency, SPAlertDeliveryChannels)Email傳遞做為最後一個參數。

請參閱

參照

SPAlertCollection class

SPAlertCollection members

Add overload

Microsoft.SharePoint namespace