> For the complete documentation index, see [llms.txt](https://docs.wisej.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/docs/controls/other-components/messagequeue.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
