> For the complete documentation index, see [llms.txt](https://web-api.iceteagroup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-api.iceteagroup.com/ppj.web.49/types/ppj.runtime.salresource.md).

# 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).
