SPAuditQuery.RestrictToUser method

Restricts the query to events relevant to the specified user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub RestrictToUser ( _
    userId As Integer _
)
'Usage
Dim instance As SPAuditQuery
Dim userId As Integer

instance.RestrictToUser(userId)
public void RestrictToUser(
    int userId
)

Parameters

Remarks

For example, if a list item is deleted by another user, that event is not included in the query even if the item and its list are otherwise within the scope of the query.

See also

Reference

SPAuditQuery class

SPAuditQuery members

Microsoft.SharePoint namespace