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

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.

See also

Reference

SPAuditQuery class

SPAuditQuery members

Microsoft.SharePoint namespace