The EventSource type exposes the following members.

Constructors

  NameDescription
Public methodEventSource

Properties

  NameDescription
Public propertyCategoryCount
Sets the number of categories in the category resource file
Public propertyCategoryResourceFile
Sets the path of the category resource file to write events with localized category strings
Public propertyDescription
Sets the description for the logentry
Public propertyEventId
Sets the event id.
Public propertyExists
Gets a value indicating whether the EventSource exists.
Public propertyForce
Set to true to delete any existing matching eventsource when creating
Public propertyLogName
Sets the name of the log the source's entries are written to, e.g Application, Security, System, YOUREVENTLOG.
Public propertyLogType
Sets the Event Log Entry Type. Possible values are: Error, FailureAudit, Information, SuccessAudit, Warning.
Public propertyMachineName (Overrides BaseTask..::..MachineName.)
Public propertyMessageResourceFile
Sets the path of the message resource file to configure an event log source to write localized event messages
Public propertyParameterResourceFile
Sets the path of the parameter resource file to configure an event log source to write localized event messages with inserted parameter strings
Public propertySource
Sets the source name
Public propertyTaskAction (Overrides BaseTask..::..TaskAction.)

See Also