Export (0) Print
Expand All
AclUIMode enumeration
ISPFileAlternateStreamProvider interface
SPAppDatabaseStorageState enumeration
SPClaimsOperationContext class
SPRequestUserContext class
SPTenantAppInformation class
SPTenantStore class
TenantAppUtility class
TenantSettings class
Expand Minimize

SPAuditEventType enumeration

Specifies types of events, for a particular site collection, site, list, folder, or list item, that are auditable by using the SPAudit class.

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

public enum SPAuditEventType

Member nameDescription
CheckOutCheck-out of the object.
CheckInCheck-in of the object.
ViewViewing of the object by a user.
DeleteDeletion of the object.
UpdateChanging the properties of an object or creating an object.
ProfileChangeChange in a profile that is associated with the object.
ChildDeleteDeletion of one of the child objects of the object.
SchemaChangeChange in the schema of the object.
UndeleteRestoration of an object from the Recycle Bin.
WorkflowAccess of the object as part of a workflow.
CopyCopying of the object.
MoveMove of the object.
AuditMaskChangeA change in the types of events that are audited for the object.
SearchSearch on the object.
ChildMoveMove of one of the child objects of the object.
FileFragmentWrite A File Fragment has been written for the file.
SecGroupCreateCreation of a user group for a SharePoint site collection.
SecGroupDeleteDeletion of a group that is associated with a SharePoint site collection.
SecGroupMemberAddAddition of a new member to a group that is associated with a SharePoint site collection.
SecGroupMemberDelDeletion of a member from a group that is associated with a SharePoint site collection.
SecRoleDefCreateCreation of a new role (that is, permission level) definition associated with the object.
SecRoleDefDeleteRemoval of a role (that is, permission level) definition associated with the object.
SecRoleDefModifyChanging a role (that is, permission level) definition associated with an object.
SecRoleDefBreakInheritTurning off inheritance of role (that is, permission level) definitions from the parent of the object.
SecRoleBindUpdateChanging the permissions of a user or group for the object.
SecRoleBindInheritTurning on inheritance of security settings from the parent of the object.
SecRoleBindBreakInheritTurning off inheritance of security settings from the parent of the object.
EventsDeletedDeletion of audited events that are connected with the object from the SharePoint database.
CustomCustom action or event.

Contrast this enumeration with SPAuditMaskType, which enumerates events and actions that are audited for a particular object.

Most values are relevant only to certain types of objects. For example, a site collection cannot be checked in or checked out.

The following example (from Item-Level Auditing with SharePoint Server 2007) shows this enumeration in use.

SPList list = site.Lists[new Guid(ListId)];
SPListItem item = list.Items.GetItemById(Convert.ToInt32(ItemId));
item.Audit.WriteAuditEvent(SPAuditEventType.Custom, 
                           "CustomViewAuditEvent",  // SoureName
                           "<myXml>MyData</myXml>"  // Any arbitrary XML data
                           );
Show:
© 2014 Microsoft