Show / Hide Table of Contents

    Class EventLogAlertHandlerConfiguration

    Represents configuration for EventLogAlertHandler that allows to write messages into Windows Event Log.

    Inheritance
    Object
    EventLogAlertHandlerConfiguration
    Implements
    IValidator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Alerts
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class EventLogAlertHandlerConfiguration : IValidator

    Constructors

    EventLogAlertHandlerConfiguration()

    Declaration
    public EventLogAlertHandlerConfiguration()

    Fields

    DefaultEventId

    Default event Id which is used, if specific event Id is not provided.

    Declaration
    public const int DefaultEventId = 1000
    Field Value
    Type Description
    Int32

    Properties

    ErrorMessage

    Gets the message indicating the errors found during validation process.

    Declaration
    public string ErrorMessage { get; }
    Property Value
    Type Description
    String

    EventCategory

    Gets or sets the application-specific subcategory associated with the message. Zero value corresponds to category "None".

    Declaration
    public short EventCategory { get; set; }
    Property Value
    Type Description
    Int16

    EventId

    Gets or sets the application-specific identifier for the event. If not set then DefaultEventId is used.

    Declaration
    public int? EventId { get; set; }
    Property Value
    Type Description
    Nullable<Int32>

    EventLogName

    Gets or sets the name of the log on the specified computer. If not set then Application log is used.

    Declaration
    public string EventLogName { get; set; }
    Property Value
    Type Description
    String

    EventType

    Gets or sets the event type of an event log entry.

    Declaration
    public EventLogEventType EventType { get; set; }
    Property Value
    Type Description
    EventLogEventType

    MachineName

    Gets or sets the computer on which the log exists. If not set then local machine is used.

    Declaration
    public string MachineName { get; set; }
    Property Value
    Type Description
    String

    MessageTemplate

    Gets or sets the template string used as event message.

    Declaration
    public string MessageTemplate { get; set; }
    Property Value
    Type Description
    String

    SourceName

    Gets or sets the source of event log entries. If source does not exist, it will be created (if possible).

    Declaration
    public string SourceName { get; set; }
    Property Value
    Type Description
    String

    Methods

    Validate()

    Evaluates the state of the object.

    Declaration
    public bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Implements

    IValidator
    Back to top Nevatech Sentinet 6.5 Online Documentation