SPWeb.InsertAlertEvent method (Guid, String, Int32, SPReusableAcl)
插入事件表格中的事件,指定自訂的 prematching GUID、 事件資料、 事件型別和可重複使用的存取控制清單 (ACL)。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub InsertAlertEvent ( _
key As Guid, _
eventData As String, _
eventType As Integer, _
reusableAcl As SPReusableAcl _
)
'用途
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)
public void InsertAlertEvent(
Guid key,
string eventData,
int eventType,
SPReusableAcl reusableAcl
)
參數
key
Type: System.GuidSystem.Guid ,表示 prematching 的識別項。
eventData
Type: System.String共同作業應用程式標記語言 (連同 CAML) 字串,包含事件資料。
eventType
Type: System.Int3232 位元的整數,指定事件型別。
reusableAcl
Type: Microsoft.SharePoint.SPReusableAclSPReusableAcl物件,表示 ACL。
備註
InsertAlertEvent方法需要最小的作者權限,才能執行。