ThrottledEventLogger class

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.


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

[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.