# LibTmux.WindowId.Parse

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/WindowId.cs#L20
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-windowid-parse/

```
LibTmux.WindowId.Parse(text: string) -> WindowId

LibTmux.WindowId.Parse(text: ReadOnlySpan<char>) -> WindowId
```

Parses a prefixed window identifier.

## Parameters

- `text` (`ReadOnlySpan<char>`): The text to parse. (for `Parse(text) [overload 2]`)

## Returns

The parsed identifier. (for `Parse(text) [overload 2]`)

## Raises

- [`FormatException`](https://learn.microsoft.com/dotnet/api/system.formatexception): The text is not a canonical window identifier. (for `Parse(text) [overload 2]`)
