# MessageQueue

The Wisej.NET `MessageQueue` component wraps Windows Message Queuing technology, enabling communication between applications across heterogeneous networks and systems, even when temporarily offline. Applications can send, receive, or peek (read without removing) messages from queues.

{% hint style="warning" %}
Message Queuing is an optional Windows component that must be installed separately.
{% endhint %}

## Features

### Queue Operations

The `MessageQueue` class provides methods for queue interaction:

* `Send(Object)`: Send messages to the queue
* `Peek`: Read messages without removal
* `Receive`: Retrieve and remove messages

### Queue Management

Create new queues or connect to existing ones:

1. Specify a path in the constructor to connect to existing queues
2. Create new queues on the server
3. Configure properties like `Category` and `Label` after association

{% hint style="info" %}
Behavior may vary slightly depending on the Message Queuing version and operating system. For details, see:

* [System.Messaging.MessageQueue on MSDN](https://docs.microsoft.com/en-us/dotnet/api/system.messaging.messagequeue?view=netframework-4.8)
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/docs/controls/other-components/messagequeue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
