Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.