EventRecord.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventRecord.cs / 1305376 / EventRecord.cs

                            // ==++== 
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--== 
/*============================================================
** 
** Class: EventRecord 
**
** Purpose: 
** This public abstract class defines the methods / properties
** that all events should support.
**
============================================================*/ 
using System;
using System.Collections; 
using System.Collections.Generic; 
using System.Security.Principal;
using System.Diagnostics.CodeAnalysis; 

namespace System.Diagnostics.Eventing.Reader {

    ///  
    /// Represents an event obtained from an EventReader.
    ///  
    [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] 
    public abstract class EventRecord : IDisposable {
        public abstract int Id { get; } 
        public abstract byte? Version { get; }
        public abstract byte? Level { get; }
        public abstract int? Task { get; }
 
        [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "Opcode", Justification = "[....]: Shipped public in 3.5, breaking change to fix now.")]
        public abstract short? Opcode { get; } 
        public abstract long? Keywords { get; } 

        public abstract long? RecordId { get; } 

        public abstract string ProviderName { get; }
        public abstract Guid? ProviderId { get; }
        public abstract string LogName { get; } 

        public abstract int? ProcessId { get; } 
        public abstract int? ThreadId { get; } 
        public abstract string MachineName { get; }
        public abstract SecurityIdentifier UserId { get; } 
        public abstract DateTime? TimeCreated { get; }

        public abstract Guid? ActivityId { get; }
        public abstract Guid? RelatedActivityId { get; } 
        public abstract int? Qualifiers { get; }
 
        public abstract string FormatDescription(); 
        public abstract string FormatDescription(IEnumerable values);
 
        public abstract string LevelDisplayName { get; }

        [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "Opcode", Justification = "[....]: Shipped public in 3.5, breaking change to fix now.")]
        public abstract string OpcodeDisplayName { get; } 
        public abstract string TaskDisplayName { get; }
        public abstract IEnumerable KeywordsDisplayNames { get; } 
 
        public abstract EventBookmark Bookmark { get; }
 
        public abstract IList Properties { get; }

        public abstract string ToXml();
 
        public void Dispose() {
            Dispose(true); 
            GC.SuppressFinalize(this); 
        }
        protected virtual void Dispose(bool disposing) { } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK