LogClassLog(Int32, String, Boolean, MsgBoxStyle, String, Boolean) Method
Writes log entry and displays and displays message window with no options
Namespace: MbcsUtilsAssembly: MbcsUtils (in MbcsUtils.dll) Version: 1.0.0.0 (1.0.0.0)
Public Function Log (
lType As Integer,
message As String,
Optional logOnly As Boolean = true,
Optional buttons As MsgBoxStyle = MsgBoxStyle.OkOnly,
Optional title As String = "",
Optional LogEvent As Boolean = false
) As MsgBoxResult
Dim instance As LogClass
Dim lType As Integer
Dim message As String
Dim logOnly As Boolean
Dim buttons As MsgBoxStyle
Dim title As String
Dim LogEvent As Boolean
Dim returnValue As MsgBoxResult
returnValue = instance.Log(lType, message,
logOnly, buttons, title, LogEvent)
- lType Int32
- Log Type
- message String
- Message string to write
- logOnly Boolean (Optional)
- Log only [True] or also display message box [FALSE]
- buttons MsgBoxStyle (Optional)
- For message box display, which buttons to use
- title String (Optional)
- For message box display, title of window
- LogEvent Boolean (Optional)
- Log to Windows Event Log
MsgBoxResultFor message box display, which button was selected