Muokkaa

Jaa


MessageQueue.Refresh Method

Definition

Refreshes the properties presented by the MessageQueue to reflect the current state of the resource.

public:
 void Refresh();
public void Refresh ();
member this.Refresh : unit -> unit
Public Sub Refresh ()

Examples

The following code example demonstrates the use of Refresh.


// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");

// Refresh the queue's property values to obtain its current state.
queue->Refresh();

queue->Close();

// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");

// Refresh the queue's property values to obtain its current state.
queue.Refresh();

Remarks

Refresh synchronizes the properties of a MessageQueue with its associated Message Queuing server resource. If any property, such as Label or Category, has changed on the server since the time the MessageQueue was created, Refresh updates the MessageQueue with the new information.

The following table shows whether this method is available in various Workgroup modes.

Workgroup mode Available
Local computer Yes
Local computer and direct format name Yes
Remote computer No
Remote computer and direct format name Yes

Applies to

See also