将查询限制为指定的类型的事件和其他事件类型指定其他调用此方法。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub AddEventRestriction ( _
eventId As SPAuditEventType _
)
用法
Dim instance As SPAuditQuery
Dim eventId As SPAuditEventType
instance.AddEventRestriction(eventId)
public void AddEventRestriction(
SPAuditEventType eventId
)
参数
eventId
类型:Microsoft.SharePoint.SPAuditEventTypeSPAuditEventType对象,该对象指定一个事件,该查询将返回审核条目的类型。
备注
可以多次调用此方法,以在查询中包括多个事件类型。
永远不会调用此方法时,如果在查询中包含所有事件类型。