SPAlert.ListID property

Gets or sets the GUID of the list or document library to which the alert applies.

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

Syntax

'Declaration
Public Property ListID As Guid
    Get
    Friend Set
'Usage
Dim instance As SPAlert
Dim value As Guid

value = instance.ListID
public Guid ListID { get; internal set; }

Property value

Type: System.Guid
A GUID that identifies the list or document library.

Remarks

The ListID property throws an SPException if the alert is an externally matched alert or if the AlertType property does not contain List or Item.

See also

Reference

SPAlert class

SPAlert members

Microsoft.SharePoint namespace