SPAlertCollection.Add 方法 (SPList, SPEventType, SPAlertFrequency)

不建议使用。改为使用Add(SPList, SPEventType, SPAlertFrequency, SPAlertDeliveryChannels)

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function Add ( _
    list As SPList, _
    eventType As SPEventType, _
    alertFrequency As SPAlertFrequency _
) As Guid
用法
Dim instance As SPAlertCollection
Dim list As SPList
Dim eventType As SPEventType
Dim alertFrequency As SPAlertFrequency
Dim returnValue As Guid

returnValue = instance.Add(list, eventType, _
    alertFrequency)
public Guid Add(
    SPList list,
    SPEventType eventType,
    SPAlertFrequency alertFrequency
)

参数

返回值

类型:System.Guid
新警报 GUID。

备注

警告

如果您编写新的应用程序时,请避免使用此已否决的重载,它维护仅用于向后兼容性。如果您修改现有的应用程序,则强烈建议来移除任何依赖此功能的。

此重载行为具有相同Add(SPList, SPEventType, SPAlertFrequency, SPAlertDeliveryChannels)Email作为其最后一个参数传递。

另请参阅

引用

SPAlertCollection 类

SPAlertCollection 成员

Add 重载

Microsoft.SharePoint 命名空间