Search Results for

    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()
    Namespace: Nevatech.Vsb.Repository.Alerts
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
    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
    int

    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
    [DataMember(EmitDefaultValue = false)]
    public short EventCategory { get; set; }
    Property Value
    Type Description
    short

    EventId

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

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public int? EventId { get; set; }
    Property Value
    Type Description
    int?

    EventLogName

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

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public string EventLogName { get; set; }
    Property Value
    Type Description
    string

    EventType

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

    Declaration
    [DataMember]
    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
    [DataMember(EmitDefaultValue = false)]
    public string MachineName { get; set; }
    Property Value
    Type Description
    string

    MessageTemplate

    Gets or sets the template string used as event message.

    Declaration
    [DataMember]
    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
    [DataMember]
    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
    bool

    True if state is valid; otherwise, false.

    Implements

    IValidator
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation