Method TryParse
TryParse(string?, IFormatProvider?, out ListeningPort)
Tries to parse a string into a ListeningPort.
static bool TryParse(string? s, IFormatProvider? provider, out ListeningPort result)
Parameters
s
stringThe string to parse.
provider
IFormatProviderAn object that provides culture-specific formatting information about s.
result
ListeningPortWhen this method returns, contains the result of successfully parsing s or an undefined value on failure.