写入审核历史记录中的 SharePoint 数据库不受限制的数据量。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function WriteAuditEventUnlimitedData ( _
eventId As SPAuditEventType, _
eventSource As String, _
xmlData As String _
) As Boolean
用法
Dim instance As SPAudit
Dim eventId As SPAuditEventType
Dim eventSource As String
Dim xmlData As String
Dim returnValue As Boolean
returnValue = instance.WriteAuditEventUnlimitedData(eventId, _
eventSource, xmlData)
public bool WriteAuditEventUnlimitedData(
SPAuditEventType eventId,
string eventSource,
string xmlData
)
参数
eventId
类型:Microsoft.SharePoint.SPAuditEventType所记录的事件的类型。
eventSource
类型:System.String调用应用程序的名称。
xmlData
类型:System.String有关事件的信息。
返回值
类型:System.Boolean
true如果写操作成功 ;否则为false。
备注
此方法不限制可以写入到数据库的数据量。因此,应避免使用此方法。此方法应仅用于内部事件的内容的类型,必须为其编写大量的数据。