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
userId
Type: System.Int32The site ID number of the user.
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.