This class throttles repeated writes of an Event under a particular context to the Windows event log. A specific duration (default 30 seconds) may be associated with an [event, context] pair. Contexts can be any object, but a best practice is to use objects that are not transient. If use of a transient context is unavoidable ensure that it is deleted before going out of scope.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration <SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _ <SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _ Public NotInheritable Class ThrottledEventLogger 'Usage Dim instance As ThrottledEventLogger
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public sealed class ThrottledEventLogger
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.