# SalResource

Namespace: **PPJ.Runtime**

Assembly: **PPJ.Runtime.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

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)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

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Name

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

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)FromName(name)

Returns the requested resource.

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

**Returns:** [SalResource](https://desktop-api.iceteagroup.com/ppj.runtime.49/types/ppj.runtime.salresource).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetImage()

Loads the icon or a bitmap from the stream.

**Returns:** [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object).
