
**Summary:** The PSD Class ID object.

**Module:** [aspose.psd.fileformats.psd.layers.layerresources](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/)

**Full Name:** aspose.psd.fileformats.psd.layers.layerresources.ClassID

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [ClassID(class_id)](#ClassID_class_id_1) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
| [ClassID(class_id)](#ClassID_class_id_2) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
| [ClassID(class_id)](#ClassID_class_id_3) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
| [ClassID(class_id)](#ClassID_class_id_4) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
| [ClassID(class_id, is_zero_length)](#ClassID_class_id_is_zero_length_5) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
| [ClassID(class_id, is_zero_length)](#ClassID_class_id_is_zero_length_6) | Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| bytes | byte | r | Gets the bytes representing class ID. |
| class_name | string | r | Gets the class name as ASCII encoding. |
| length | int | r | Gets the class ID length in bytes. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [save(stream_container)](#save_stream_container_1) | Saves the class information to the specified stream container. |


### Constructor: ClassID(class_id) {#ClassID_class_id_1}


```
 ClassID(class_id) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | byte | The class ID as series of bytes. |

### Constructor: ClassID(class_id) {#ClassID_class_id_2}


```
 ClassID(class_id) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | int | The class ID as series of bytes. |

### Constructor: ClassID(class_id) {#ClassID_class_id_3}


```
 ClassID(class_id) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | uint | The class ID as series of bytes. |

### Constructor: ClassID(class_id) {#ClassID_class_id_4}


```
 ClassID(class_id) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | string | The class ID as series of bytes. |

### Constructor: ClassID(class_id, is_zero_length) {#ClassID_class_id_is_zero_length_5}


```
 ClassID(class_id, is_zero_length) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | byte | The class ID as series of bytes. |
| is_zero_length | bool | if set to <c>true</c> [is zero length].<br/>            The recorded string length is zero but actual is four. |

### Constructor: ClassID(class_id, is_zero_length) {#ClassID_class_id_is_zero_length_6}


```
 ClassID(class_id, is_zero_length) 
```

Initializes a new instance of the [ClassID](/psd/python-net/aspose.psd.fileformats.psd.layers.layerresources/classid/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| class_id | string | The class ID as series of bytes. |
| is_zero_length | bool | if set to <c>true</c> [is zero length].<br/>            The recorded string length is zero but actual is four. |

### Method: save(stream_container) {#save_stream_container_1}


```
 save(stream_container) 
```

Saves the class information to the specified stream container.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| stream_container | [StreamContainer](/psd/python-net/aspose.psd/streamcontainer) | The stream container to save to. |

