# Capacity

> The current capacity in bytes of this string.

## Definition

* **Type:** Property
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public int Capacity { readonly get; set; }
```

### Remarks

The null-terminator byte is not included in the capacity, so the string's character buffer is `Capacity + 1` in size.
