SPAudit.WriteAuditEventUnlimitedData 方法 (SPAuditEventType, String, String)

写入审核历史记录中的 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
)

参数

  • eventSource
    类型:System.String

    调用应用程序的名称。

返回值

类型:System.Boolean
true如果写操作成功 ;否则为false。

备注

此方法不限制可以写入到数据库的数据量。因此,应避免使用此方法。此方法应仅用于内部事件的内容的类型,必须为其编写大量的数据。

另请参阅

引用

SPAudit 类

SPAudit 成员

WriteAuditEventUnlimitedData 重载

Microsoft.SharePoint 命名空间