GeneralFunctions.WriteToApplicationEventLog Method

Writes to the application event log.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim message As String
Dim type As EventLogEntryType

GeneralFunctions.WriteToApplicationEventLog(message, type)

Syntax

'Declaration
Public Shared Sub WriteToApplicationEventLog ( _
    message As String, _
    type As EventLogEntryType _
)
public static void WriteToApplicationEventLog (
    string message,
    EventLogEntryType type
)
public:
static void WriteToApplicationEventLog (
    String^ message, 
    EventLogEntryType type
)
public static void WriteToApplicationEventLog (
    String message, 
    EventLogEntryType type
)
public static function WriteToApplicationEventLog (
    message : String, 
    type : EventLogEntryType
)

Parameters

  • message
    Specifies the message to log
  • type
    Specifies the log Type

Remarks

The intended purpose is to use this as a "last resort" for logging when some failure prevents from writing to listeners.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

GeneralFunctions Class
GeneralFunctions Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.