SPAuditQuery.AddEventRestriction method
Restricts the query to the specified type of event and other event types that were specified with other calls to this method.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub AddEventRestriction ( _
eventId As SPAuditEventType _
)
'Usage
Dim instance As SPAuditQuery
Dim eventId As SPAuditEventType
instance.AddEventRestriction(eventId)
public void AddEventRestriction(
SPAuditEventType eventId
)
Parameters
eventId
Type: Microsoft.SharePoint.SPAuditEventTypeAn SPAuditEventType object that specifies one of the types of events for which the query returns audit entries.
Remarks
You can call this method multiple times to include more event types in the query.
If this method is never called, all event types are included in the query.