QuickOPC User's Guide and Reference
LogEntryEventArgs Constructor(String,String)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Instrumentation Namespace > LogEntryEventArgs Class > LogEntryEventArgs Constructor : LogEntryEventArgs Constructor(String,String)
The application event source.
The string to write to the event log.
Creates an information type entry with the given message text for the event log, using the specified event source.
Syntax
'Declaration
 
<ObsoleteAttribute("It is recommended that you always specify the eventId argument.")>
Public Function New( _
   ByVal source As String, _
   ByVal message As String _
)
'Usage
 
Dim source As String
Dim message As String
 
Dim instance As New LogEntryEventArgs(source, message)
[Obsolete("It is recommended that you always specify the eventId argument.")]
public LogEntryEventArgs( 
   string source,
   string message
)
[Obsolete("It is recommended that you always specify the eventId argument.")]
public:
LogEntryEventArgs( 
   String^ source,
   String^ message
)

Parameters

source
The application event source.
message
The string to write to the event log.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also