
## ContentTypePropertyCollection class

A collection of [ContentTypeProperty](../contenttypeproperty/) objects that represent additional information.

```javascript
class ContentTypePropertyCollection implements Iterable<ContentTypeProperty>;
```


## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the content type property by the specific index. |
| [get(string)](#get-string-)| Gets the content type property by the property name. |
| [add(string, string)](#add-string-string-)| Adds content type property information. |
| [add(string, string, string)](#add-string-string-string-)| Adds content type property information. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |

## \[Symbol.iterator\](): Iterator\<ContentTypeProperty\>

Returns an iterator over the items in the collection. Enables use of `for...of`, spread syntax, and `Array.from()`.



### get(number) {#get-number-}

Gets the content type property by the specific index.

```javascript
get(index: number) : ContentTypeProperty;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The index. |

**Returns**

The content type property

### get(string) {#get-string-}

Gets the content type property by the property name.

```javascript
get(name: string) : ContentTypeProperty;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The property name. |

**Returns**

The content type property

### add(string, string) {#add-string-string-}

Adds content type property information.

```javascript
add(name: string, value: string) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the content type property. |
| value | string | The value of the content type property. |

### add(string, string, string) {#add-string-string-string-}

Adds content type property information.

```javascript
add(name: string, value: string, type: string) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the content type property. |
| value | string | The value of the content type property. |
| type | string | The type of the content type property. |

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



