Gets the current Message that this enumerator points to.
Assembly: System.Messaging (in System.Messaging.dll)
You accessed this property before the first call to MoveNext. The cursor is located before the first element of the message enumeration.
You accessed this property after a call to MoveNext had returned false (indicating the cursor is located after the last element of the message enumeration.)
The message the enumerator is currently pointing to no longer exists. It might have been deleted.
When the enumerator is created, it points to the head of the queue, at a location before the first message. In this case, this property is not valid and will throw an exception if it is accessed. You must call MoveNext to position the cursor at the first message in the queue.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.