|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
WebEventBufferFlushInfo-Klasse
Namespace: System.Web.Management
Assembly: System.Web (in System.Web.dll)
Der WebEventBufferFlushInfo-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | Events | |
![]() | EventsDiscardedSinceLastNotification | |
![]() | EventsInBuffer | |
![]() | LastNotificationUtc | |
![]() | NotificationSequence | |
![]() | NotificationType |
| Name | Beschreibung | |
|---|---|---|
![]() | Equals(Object) | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | ToString |
Hinweis |
|---|
| Topic | Location |
|---|---|
| Gewusst wie: Beispiel für das Implementieren eines benutzerdefinierten Systemüberwachungsanbieters | Erstellen von ASP.NET-Webanwendungen |
| Gewusst wie: Beispiel für das Implementieren eines benutzerdefinierten Systemüberwachungsanbieters | Erstellen von ASP.NET-Webanwendungen in Visual Studio |
// Processes the messages that have been buffered. // It is called by the ASP.NET when the flushing of // the buffer is required. public override void ProcessEventFlush( WebEventBufferFlushInfo flushInfo) { // Customize event information to be sent to // the Windows Event Viewer Application Log. customInfo.AppendLine( "SampleEventLogWebEventProvider buffer flush."); customInfo.AppendLine( string.Format("NotificationType: {0}", GetNotificationType(flushInfo))); customInfo.AppendLine( string.Format("EventsInBuffer: {0}", GetEventsInBuffer(flushInfo))); customInfo.AppendLine( string.Format( "EventsDiscardedSinceLastNotification: {0}", GetEventsDiscardedSinceLastNotification(flushInfo))); // Read each buffered event and send it to the // Application Log. foreach (WebBaseEvent eventRaised in flushInfo.Events) customInfo.AppendLine(eventRaised.ToString()); // Store the information in the specified file. StoreToFile(customInfo, logFilePath, FileMode.Append); }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
