# SalResource

Namespace: **PPJ.Runtime**

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

Base class for SalResource\* classes.

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

```csharp
public class SalResource
```

{% endtab %}

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

```visual-basic
Public Class SalResource
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalResource(name, asm)

Constructs a SalResource object.

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

## Properties

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

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns the name of the resource.

## Methods

### ![](/files/jDiecrwjcc5yZsrGcmX2)FromName(name)

Returns the requested resource.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **name**  | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) |             |

**Returns:** [SalResource](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salresource.md).

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

Loads the icon or a bitmap from the stream.

**Returns:** [Image](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image).


---

# 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/types/ppj.runtime.salresource.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.
