Caller Property

The function or sub that logged the message.

Syntax

Property Caller As String

Parameters

None

Examples

IronPython

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


#Set 
msg.Caller = msg_caller


C#

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


//Set

msg.Caller = msg_caller;

Remarks