New Method

Creates a new log message.

Syntax

Sub New(index, dt, severity, caller, msg, addInfo)


Parameters


index

Type: Integer

The index of the message


dt

Type: DateTime

The date and time of logging


caller

Type: Object

The function or sub that logged this message


msg

Type: String

The descriptive content of this message


addInfo

Type: Boolean

Additional info provided in this message



Return Value


Type: VSMessage

Examples

IronPython

#Create message

msg = VSMessage(0, DateTime.Now, VSSeverity.Error, "IronPython script", "My test message", "Additional info")



C#

//Create message

VSMessage msg = new VSMessage(0, DateTime.Now, VSSeverity.Error, "C# script", "My test message", "Additional info");


Remarks