Compartilhar via


SPAuditEntryCollection class

Fornece um contêiner para objetos SPAuditEntry .

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPAuditEntryCollection

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

Syntax

'Declaração
Public NotInheritable Class SPAuditEntryCollection _
    Inherits SPBaseCollection
'Uso
Dim instance As SPAuditEntryCollection
public sealed class SPAuditEntryCollection : SPBaseCollection

Comentários

Essa classe é usada principalmente como o valor de retorno para GetEntries.

Examples

O exemplo a seguir (da Item-Level Auditing with SharePoint Server 2007) mostra essa classe em uso.

SPAuditQuery wssQuery = new SPAuditQuery(siteCollection);
wssQuery.RestrictToListItem(item);
SPAuditEntryCollection auditCol = site.Audit.GetEntries(wssQuery);

foreach (SPAuditEntry entry in auditCol) {
  // get info from audit log
}
Dim wssQuery As New SPAuditQuery(siteCollection)
wssQuery.RestrictToListItem(item)
Dim auditCol As SPAuditEntryCollection = site.Audit.GetEntries(wssQuery)

For Each entry As SPAuditEntry In auditCol
  ' get info from audit log
Next entry

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Ver também

Referência

SPAuditEntryCollection members

Microsoft.SharePoint namespace