Table of Contents

Class EventLogSource

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll
[Serializable]
[DataContract]
public class EventLogSource
Inheritance
object
EventLogSource

Constructors

EventLogSource()

public EventLogSource()

EventLogSource(string)

Read source from Registry key

public EventLogSource(string sourceName)

Parameters

NameTypeDescription
sourceName string

Fields

DisplayName

[DataMember]
public string DisplayName

Field Value

string

EventCategories

[DataMember]
public List<EventLogSourceCategory> EventCategories

Field Value

List<EventLogSourceCategory>

Name

[DataMember]
public string Name

Field Value

string

Properties

StrippedName

Gets the DisplayName, if set, or else the Name. Removes name qualifiers.

public string StrippedName { get; }

Property Value

string

Remarks

For qualified names such as "Microsoft-Windows-Service Control Manager", StrippedName returns only the last node of the name.

Methods

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.