SPAuditEntry.AppPrincipalId property

Gets the ID of the app principal who caused the event.

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

Syntax

'Declaration
Public ReadOnly Property AppPrincipalId As Nullable(Of Integer)
    Get
'Usage
Dim instance As SPAuditEntry
Dim value As Nullable(Of Integer)

value = instance.AppPrincipalId
public Nullable<int> AppPrincipalId { get; }

Property value

Type: System.Nullable<Int32>
An Int32 that represents the app principal's ID in the SharePoint database.

Remarks

If the value of EventSource is ObjectModel, then AppPrincipalId holds the ID of the app principal in whose context the code that caused the event was running. If there is no app context, the AppPrincipalId is null.

See also

Reference

SPAuditEntry class

SPAuditEntry members

Microsoft.SharePoint namespace