Table of Contents

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

line string

The line; null gives false.

key SshPublicKey

The key, when the line is one.

Returns

bool

Whether the line is a supported public key.