Method TryParse
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
TryParse(string?, out SshPublicKey?)
Parses a line as Parse(string) does, without throwing.
public static bool TryParse(string? line, out SshPublicKey? key)
Parameters
linestringThe line; null gives false.
keySshPublicKeyThe key, when the line is one.
Returns
- bool
Whether the line is a supported public key.