# WriteToString()

> Writes the document contents to a string.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.iOS.Xcode](/engine/6000.5/script-reference/unityeditor/ios/xcode.md)
* **Assembly:** UnityEditor.iOS.Extensions.Xcode

```csharp
public string WriteToString()
```

### Returns

| Type                                                           | Description                               |
| -------------------------------------------------------------- | ----------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The project contents converted to string. |
