EventLogSettings Třída

Definice

Nastavení pro EventLogLogger .Settings for EventLogLogger.

public ref class EventLogSettings
public class EventLogSettings
type EventLogSettings = class
Public Class EventLogSettings
Dědičnost
EventLogSettings

Konstruktory

EventLogSettings()

Vlastnosti

EventLog

Pouze pro účely testování jednotek.For unit testing purposes only.

Filter

Funkce používaná k filtrování událostí na základě úrovně protokolu.The function used to filter events based on the log level.

LogName

Název protokolu událostíName of the event log. Pokud null parametr není zadán, je použita výchozí hodnota "Application".If null or not specified, "Application" is the default.

MachineName

Název počítače, který má protokol událostí.Name of the machine having the event log. Pokud null není zadaný, použije se výchozí místní počítač.If null or not specified, local machine is the default.

SourceName

Název zdroje protokolu událostíName of the event log source. Pokud null parametr není zadán, je použita výchozí hodnota "Application".If null or not specified, "Application" is the default.

Metody

Equals(Object)

Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object.

(Zděděno od Object)
GetHashCode()

Slouží jako výchozí funkce hash.Serves as the default hash function.

(Zděděno od Object)
GetType()

Získá Type aktuální instanci.Gets the Type of the current instance.

(Zděděno od Object)
MemberwiseClone()

Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object.

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object.

(Zděděno od Object)

Platí pro