# LibTmux.WindowId.TryParse

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

```
LibTmux.WindowId.TryParse(text: string?, result: WindowId) -> bool

LibTmux.WindowId.TryParse(text: ReadOnlySpan<char>, result: WindowId) -> bool
```

Tries to parse a prefixed window identifier.

## Parameters

- `text` (`ReadOnlySpan<char>`): The text to parse. (for `TryParse(text, result) [overload 2]`)
- `result` (`WindowId`): The parsed identifier when this succeeds. (for `TryParse(text, result) [overload 2]`)

## Returns

<see langword="true" /> when the text was a canonical identifier. (for `TryParse(text, result) [overload 2]`)
