Track events on a Sharepoint document library + Object model + Audit reports
Code snnipet -
SPSite site = new SPSite("YourSiteUrl");
SPAudit _auditCol = site.Audit;
foreach (SPAuditEntry _audit in _auditCol)
{
string Loginfo = _audit.DocLocation + " - " + _audit.Event.ToString());
}
0 comments:
Post a Comment