MSMQMessage.SentTime

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The SentTime property of the MSMQMessage object indicates when a message is sent.

Data type: Variant (Date)
Run-time access: Read-only
Property SentTime As Variant  

Property Value

A Variant (Date) specifying the date when the message was sent.

Remarks

The returned value for this property can be manipulated using standard Microsoft® Visual Basic® date and time functions such as Date$ and Time$. For descriptions of Visual Basic functions, see the Visual Basic documentation.

When SentTime is displayed, Visual Basic automatically converts the parameter's value to the local system time and system date.

You can also retrieve the sent time of a message using Message Queuing function calls.

Equivalent API Function Property

With API function calls, the equivalent property is PROPID_M_SENTTIME.

Example Code

The following example is included in Using Message Queuing.

For an example of See
Filtering messages based on the time when they were sent Visual Basic Code Example: Time Sent Filters

Requirements

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

MSMQMessage
PROPID_M_SENTTIME