Using TraceSwitch

You can use the TraceSwitch class to control the detail of messages produced by your Trace statements. TraceSwitch does not directly control the Trace statements, you have to pass one of its properties into a WriteLineIf or WriteIf method.

More



XmlSerializer UnknownNode Event

The UnknownNode Event occurs when calling Deserialize and the xml contains nodes that do not exist in the type class. By default the XmlSerializer ignores unknown XML nodes, so this event gives you the ability to handle them.

More



Using ManagementClass

ManagementClass is a Common Information Model (CIM) management class. An example of a management class is a WMI class like Win32_LogicalDisk which hold information about the drives on a machine.

More



Using EventSourceCreationData

You can use EventSourceCreationData to register an application as a source for events. The EventSourceCreationData constructor takes the name of the Source which is your application name and a LogName which is the name of the category the EventLogEntry will be placed into, this can be Application, System, or a custom log name.

More



Prev