SPAlert.List 属性

获取或设置警报所应用到的列表或文档库。

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

语法

声明
Public Property List As SPList
    Get
    Set
用法
Dim instance As SPAlert
Dim value As SPList

value = instance.List

instance.List = value
public SPList List { get; set; }

属性值

类型:Microsoft.SharePoint.SPList
SPList 对象,该对象表示列表或文档库。

备注

List属性引发SPException在以下情况下:

  • 如果用于获取该列表,并将AlertType属性不包含List或Item。

  • 如果使用列表中,并将AlertType属性不包含List。

  • 如果将AlertType属性设置之前设置。

  • 如果更改之后调用Update方法。

另请参阅

引用

SPAlert 类

SPAlert 成员

Microsoft.SharePoint 命名空间