C# Class NLog.Model.LogEvent

Afficher le fichier Open project: loresoft/NLog.Xml Class Usage Examples

Méthodes publiques

Méthode Description
Load ( Stream stream ) : LogEvent

Creates an new instance by loading the specified stream.

Load ( TextReader reader ) : LogEvent

Creates an new instance by loading the specified reader.

Load ( XmlReader reader ) : LogEvent

Creates an new instance by loading the specified reader.

Load ( string xml ) : LogEvent

Creates an new instance by loading the specified XML.

LogEvent ( ) : System

Initializes a new instance of the LogEvent class.

Populate ( LogEventInfo logEventInfo ) : void

Populates from specified LogEventInfo.

Save ( ) : string

Saves this instance to an XML string.

Save ( Stream stream ) : void

Saves this instance the specified stream.

Save ( TextWriter writer ) : void

Saves this instance the specified writer.

Save ( XmlWriter writer ) : void

Saves this instance the specified writer.

ToString ( ) : string

Method Details

Load() public static méthode

Creates an new instance by loading the specified stream.
public static Load ( Stream stream ) : LogEvent
stream Stream The to load the instance from.
Résultat LogEvent

Load() public static méthode

Creates an new instance by loading the specified reader.
public static Load ( TextReader reader ) : LogEvent
reader TextReader The reader to load the instance from.
Résultat LogEvent

Load() public static méthode

Creates an new instance by loading the specified reader.
public static Load ( XmlReader reader ) : LogEvent
reader XmlReader The reader to load the instance from.
Résultat LogEvent

Load() public static méthode

Creates an new instance by loading the specified XML.
public static Load ( string xml ) : LogEvent
xml string The XML string representing this instance.
Résultat LogEvent

LogEvent() public méthode

Initializes a new instance of the LogEvent class.
public LogEvent ( ) : System
Résultat System

Populate() public méthode

Populates from specified LogEventInfo.
public Populate ( LogEventInfo logEventInfo ) : void
logEventInfo LogEventInfo The log event info.
Résultat void

Save() public méthode

Saves this instance to an XML string.
public Save ( ) : string
Résultat string

Save() public méthode

Saves this instance the specified stream.
public Save ( Stream stream ) : void
stream Stream The to save this instance to.
Résultat void

Save() public méthode

Saves this instance the specified writer.
public Save ( TextWriter writer ) : void
writer System.IO.TextWriter The to save this instance to.
Résultat void

Save() public méthode

Saves this instance the specified writer.
public Save ( XmlWriter writer ) : void
writer System.Xml.XmlWriter The to save this instance to.
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string