# SalContext

Namespace: **PPJ.Runtime.Windows**

Assembly: **PPJ.Web.49** (4.9.0.0)

Synchronizes the Sys.hWndItem, Sys.hWndForm and Sys.hWndForm with the control handling the message.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalContext : IDisposable
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalContext
    Inherits IDisposable
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl)

Constructs a new SalContext and pushes it on the stack.

| Name     | Type                                                      | Description                                  |
| -------- | --------------------------------------------------------- | -------------------------------------------- |
| **ctrl** | [Control](https://docs.wisej.com/api?q=wisej.web.control) | Target control on which to execute the call. |

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl, root)

Constructs a new SalContext and pushes it on the stack.

| Name     | Type                                                                  | Description                                  |
| -------- | --------------------------------------------------------------------- | -------------------------------------------- |
| **ctrl** | [Control](https://docs.wisej.com/api?q=wisej.web.control)             | Target control on which to execute the call. |
| **root** | [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean) |                                              |

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl, locals)

Constructs a new SalContext and pushes it on the stack.

| Name       | Type                                                                | Description                                  |
| ---------- | ------------------------------------------------------------------- | -------------------------------------------- |
| **ctrl**   | [Control](https://docs.wisej.com/api?q=wisej.web.control)           | Target control on which to execute the call. |
| **locals** | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |                                              |

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(module)

Constructs a new SalContext and pushed it on the stack.

| Name       | Type                                                                               | Description |
| ---------- | ---------------------------------------------------------------------------------- | ----------- |
| **module** | [Assembly](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly) |             |

## Properties

### ![](/files/qoQXnPICsjBVNBSqpOj9)Control

[Control](https://docs.wisej.com/api?q=wisej.web.control): Returns the target control of the messages that created this context.

### ![](/files/jDiecrwjcc5yZsrGcmX2)Current

[SalContext](https://docs.wisej.com/extensions/ppj.web.49/controls/ppj.runtime.windows.salcontext.md): Returns the current context at the top of the stack.

### ![](/files/qoQXnPICsjBVNBSqpOj9)Disposed

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns true if the SalContext has been disposed of (out of scope).

### ![](/files/qoQXnPICsjBVNBSqpOj9)Module

[Assembly](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly): Returns the module that created the control in context.

## Methods

### ![](/files/qoQXnPICsjBVNBSqpOj9)Dispose()


---

# 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://web-api.iceteagroup.com/ppj.web.49/controls/ppj.runtime.windows.salcontext.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.
