MessageDateTime Property

The date and time of logging.

Syntax

Property MessageDateTime As Date

Parameters

None

Examples

IronPython

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


#Set 
msg.MessageDateTime = msg_datetime


C#

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


//Set 

msg.MessageDateTime = msg_datetime;

Remarks