SPAuditEntry.UserId property
取得導致事件發生之使用者的識別碼。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property UserId As Integer
Get
'用途
Dim instance As SPAuditEntry
Dim value As Integer
value = instance.UserId
public int UserId { get; }
Property value
Type: System.Int32
Int32 表示 SharePoint 使用者資料庫的使用者識別碼。
備註
如果ObjectModelEventSource的值, UserId會保留其內容中導致事件發生的程式碼所執行的使用者識別碼。如果 「 系統 」 帳戶的使用者內容, UserId會傳回-1。