# LibTmux.Workspace.WorkspaceFile.Parse

- **Module:** LibTmux.Workspace.WorkspaceFile
- **Package:** LibTmux.Workspace
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Workspace/WorkspaceFile.cs#L128
- **Page:** https://libtmux.org/en/dotnet/latest/workspace/reference/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.
