System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / CreateCursor Method



In This Topic
    CreateCursor Method
    In This Topic
    Creates a new Cursor for the current message queue.
    Syntax
    'Declaration
     
    
    Public Function CreateCursor() As Cursor
    'Usage
     
    
    Dim instance As MessageQueue
    Dim value As Cursor
     
    value = instance.CreateCursor()
    public Cursor CreateCursor()
    public:
    Cursor^ CreateCursor(); 

    Return Value

    A new Cursor for the current message queue. This cursor is used to maintain a specific location in the queue when reading the queue's messages.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also