# LibTmux.Workspace.WorkspaceFile.Parse

- **Module:** LibTmux.Workspace
- **Package:** LibTmux.Workspace
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Workspace/WorkspaceFile.cs#L415
- **Page:** https://libtmux.org/en/csharp/latest/workspace/reference/libtmux-workspace-workspacefile-parse/

```
LibTmux.Workspace.WorkspaceFile.Parse(yaml: string) -> WorkspaceFile
```

Reads a workspace from tmuxp YAML or JSON.

## Parameters

- `yaml` (`string`): The file contents.

## Returns

The parsed workspace.

## Raises

- [`WorkspaceFormatException`](/en/csharp/latest/workspace/reference/libtmux-workspace-workspaceformatexception/): The input is too large, malformed, contains more than one document, or
uses a key or value shape outside the supported subset.
