SPAlert.MatchId property

Gets or sets the pre-filtering GUID for an externally matched alert.

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

Syntax

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

value = instance.MatchId

instance.MatchId = value
public Guid MatchId { get; set; }

Property value

Type: System.Guid
A System.Guid that represents the pre-filtering GUID.

Remarks

The MatchId property throws an SPException in the following situations:

  • If the alert applies to list or item.

  • If the AlertType property does not contain Custom.

  • If set prior to setting the AlertType property.

  • If changed after the Update method is called.

This property is required if the AlertType property contains Custom. If an existing list GUID is specified, the alert matches all events on the list, but it does not appear in alert management UI.

See also

Reference

SPAlert class

SPAlert members

Microsoft.SharePoint namespace