ThrottledEventLogger class
此類別throttles重複寫入至 Windows 事件記錄檔的特定內容下的事件。可能會與相關聯的特定持續時間 (預設值 30 秒) [事件,快顯] 組。內容可以是任何物件,但最佳作法是使用不是暫時性的物件。如果使用的暫時性的內容是無法避免請確定它會刪除前使邁向超出範圍。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Diagnostics.ThrottledEventLogger
Namespace: Microsoft.SharePoint.Diagnostics
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class ThrottledEventLogger
'用途
Dim instance As ThrottledEventLogger
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class ThrottledEventLogger
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.