---
Product: psd
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/net/resourceblock
---

# ResourceBlock

## Overview

`ResourceBlock` is a class in Aspose.PSD FOSS for .NET.

Represents a PSD image resource block.

This class declares 2 methods for ResourceBlock objects in .NET programs.
Available methods include: `Save`, `ValidateValues`.
Public members are accessible to any .NET application after installing the Aspose.PSD FOSS for .NET package.
Properties: `DataSize`, `ID`, `MinimalVersion`, `Name`, `ResouceBlockMeSaSignature`, `ResouceBlockSignature`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `DataSize` | `int` | Read | Gets the resource data size in bytes. |
| `ID` | `short` | Read/Write | Gets or sets the unique identifier for the resource. |
| `MinimalVersion` | `int` | Read | Gets the minimal required PSD version. |
| `Name` | `string` | Read/Write | Gets or sets the resource name. |
| `Signature` | `int` | Read | Gets the resource signature. |
| `Size` | `int` | Read | Gets the resource block size in bytes including its data. |
| `ResouceBlockSignature` | `int` | Read | The regular Photoshop resource signature. |
| `ResouceBlockMeSaSignature` | `int` | Read | The ImageReady resource signature. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Save(stream: StreamContainer)` | Saves the resource block to the specified stream container. |
| `ValidateValues()` | Validates the resource values. |

## See Also

- [Aspose.PSD for .NET — Enterprise API Reference](https://reference.aspose.com/psd/net/)