SPWeb.InsertAlertEvent Method (Guid, String, Int32, SPReusableAcl)

Inserts an event in the events table for the specified custom prematching GUID, event data, event type, and reusable access control list (ACL).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Sub InsertAlertEvent ( _
    key As Guid, _
    eventData As String, _
    eventType As Integer, _
    reusableAcl As SPReusableAcl _
)
'Usage
Dim instance As SPWeb
Dim key As Guid
Dim eventData As String
Dim eventType As Integer
Dim reusableAcl As SPReusableAcl

instance.InsertAlertEvent(key, eventData, _
    eventType, reusableAcl)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public void InsertAlertEvent(
    Guid key,
    string eventData,
    int eventType,
    SPReusableAcl reusableAcl
)

Parameters

  • key
    Type: System.Guid

    A System.Guid that represents the prematching identifier.

  • eventData
    Type: System.String

    A Collaborative Application Markup Language (CAML) string that contains the event data.

  • eventType
    Type: System.Int32

    A 32-bit integer that specifies the event type.

Remarks

The InsertAlertEvent method requires minimum author privileges to execute.

See Also

Reference

SPWeb Class

SPWeb Members

InsertAlertEvent Overload

Microsoft.SharePoint Namespace