共用方式為


SPAlert.MatchId property

取得或設定外部相符警示的預先篩選的 GUID。

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

Syntax

'宣告
Public Property MatchId As Guid
    Get
    Set
'用途
Dim instance As SPAlert
Dim value As Guid

value = instance.MatchId

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

Property value

Type: System.Guid
System.Guid表示預先篩選的 GUID。

備註

MatchId屬性會擲回SPException在下列情況:

  • 如果警示套用至清單或項目。

  • 如果AlertType屬性不包含Custom。

  • 如果之前設定AlertType屬性設定。

  • 如果變更後會呼叫Update方法。

如果AlertType屬性包含Custom,就需要這個屬性。如果現有的清單,指定 GUID,警示符合在清單中的所有事件,但它不會出現在警示管理 UI。

請參閱

參照

SPAlert class

SPAlert members

Microsoft.SharePoint namespace