共用方式為


SPAuditEntry.AppPrincipalId property

會取得識別碼的應用程式主體誰導致事件發生。

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

Syntax

'宣告
Public ReadOnly Property AppPrincipalId As Nullable(Of Integer)
    Get
'用途
Dim instance As SPAuditEntry
Dim value As Nullable(Of Integer)

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

Property value

Type: System.Nullable<Int32>
Int32 代表 SharePoint 資料庫中的應用程式主體的識別碼。

備註

如果 ObjectModel EventSource 的值,然後 AppPrincipalId 保留應用程式的識別碼主體導致事件發生的程式碼所執行的內容中。如果沒有應用程式內容、 AppPrincipalId 為 null。

請參閱

參照

SPAuditEntry class

SPAuditEntry members

Microsoft.SharePoint namespace