# LibTmux.Workspace.WorkspaceFile.Parse

- **Module:** LibTmux.Workspace.WorkspaceFile
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux.Workspace/WorkspaceFile.cs#L128
- **Page:** https://libtmux.org/reference/dotnet/libtmux-workspace-workspacefile-parse/

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

Reads a workspace from tmuxp YAML.

## Parameters

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

## Returns

The parsed workspace.

## Raises

- `WorkspaceFormatException` — The input is too large, malformed, contains more than one document, or
uses a key or value shape outside the supported subset.
