Click or drag to resize

NetworkPortsTryParse Method

Attempts to parse an integer or well known port name from a string and return the integer TCP port number.

Namespace:  Neon.Net
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.4.1
Syntax
public static bool TryParse(
	string input,
	out int port
)

Parameters

input
Type: SystemString
The port number or name as as string.
port
Type: SystemInt32
Receives the parsed port number.

Return Value

Type: Boolean
true if a port was successfulyy parsed.
See Also