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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public Guid MatchId { get; set; }

Property Value

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

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.