Partilhar via


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

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