次の方法で共有


MSMQQueue.Reset (Compact 2013)

3/26/2014

This method returns the cursor to the start of the queue.

Syntax

HRESULT Reset(void);

Parameters

None.

Return Value

The following table describes the common return values.

Value

Description

S_OK

Success

E_INVALIDARG

One or more arguments are invalid

E_NOTIMPL

The function contains no implementation

E_OUTOFMEMORY

Out of memory

Remarks

When navigating the queue using the cursor, the MSMQQueue.Reset method moves the cursor to the front of the queue. To move the cursor from the front of the queue to the first message in the queue, call MSMQQueue.PeekCurrent or MSMQQueue.ReceiveCurrent.

Requirements

Header

mqoai.h

Library

mqoa.lib

See Also

Reference

MSMQQueue