Share via


SPAuditEventType enumeration

指定事件,特定的網站集合、 網站、 清單、 資料夾或清單項目,藉由使用SPAudit類別的可稽核的型的別。

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

Syntax

'宣告
Public Enumeration SPAuditEventType
'用途
Dim instance As SPAuditEventType
public enum SPAuditEventType

Members

Member name Description
CheckOut 簽出的物件。
CheckIn 簽入的物件。
View 檢視使用者的物件。
Delete 刪除物件。
Update 變更物件的屬性,或建立物件。
ProfileChange 變更與物件相關聯的設定檔中。
ChildDelete 刪除其中一個物件的子物件。
SchemaChange 變更物件的結構描述中。
Undelete 將物件從資源回收筒還原。
Workflow 工作流程的組件的物件的存取。
Copy 正在複製的物件。
Move 移動的物件。
AuditMaskChange 在 [稽核物件的事件類型變更。
Search 搜尋在物件上。
ChildMove 其中一個物件的子物件的移動。
FileFragmentWrite 檔案已寫入的檔案片段。
SecGroupCreate 建立使用者群組的 SharePoint 網站集合。
SecGroupDelete 刪除與 SharePoint 網站集合相關聯的群組。
SecGroupMemberAdd 加入新成員至 SharePoint 網站集合相關聯的群組。
SecGroupMemberDel 刪除從 SharePoint 網站集合相關聯的群組的成員。
SecRoleDefCreate 建立新的角色 (也就是權限層級) 定義,與物件相關聯。
SecRoleDefDelete 移除與物件相關聯的角色 (也就是權限層級) 定義。
SecRoleDefModify 變更與物件相關聯的角色 (也就是權限層級) 定義。
SecRoleDefBreakInherit 關閉 [繼承自父系物件的角色 (也就是權限層級) 定義的功能。
SecRoleBindUpdate 變更使用者或群組物件的權限。
SecRoleBindInherit 開啟 [繼承自父系物件的安全性設定。
SecRoleBindBreakInherit 關閉 [繼承自父系物件的安全性設定的功能。
EventsDeleted 刪除連接與從 SharePoint 資料庫物件的稽核事件。
Custom 自訂動作或事件。

備註

對比這個列舉型別與SPAuditMaskType,列舉事件和特定物件的稽核的動作。

大多數的數值是只與特定類型的物件相關。例如,網站集合無法簽入或簽出。

Examples

下列範例 ( Item-Level Auditing with SharePoint Server 2007) 顯示此列舉型別使用中。

SPList list = site.Lists[new Guid(ListId)];
SPListItem item = list.Items.GetItemById(Convert.ToInt32(ItemId));
item.Audit.WriteAuditEvent(SPAuditEventType.Custom, 
                           "CustomViewAuditEvent",  // SoureName
                           "<myXml>MyData</myXml>"  // Any arbitrary XML data
                           );
Dim list As SPList = site.Lists(New Guid(ListId))
        Dim item As SPListItem = list.Items.GetItemById(Convert.ToInt32(ItemId))

        item.Audit.WriteAuditEvent(SPAuditEventType.Custom,
                                    "CustomViewAuditEvent",
                                    "<myXml>MyData</myXml>")   'Any arbitrary XML data  -  SoureName  

請參閱

參照

Microsoft.SharePoint namespace

其他資源

Item-Level Auditing with SharePoint Server 2007