Walter.Net.Networking
TryGet Method (ProtoCollNumbers)
Walter.Net.Networking Assembly > Walter.Net.Networking.IANA Namespace > ProtoCollNumbers Class : TryGet Method
the port to query
the service name if successful
try and get the IANA protocol name that goes with a port number
Syntax
public static bool TryGet( 
   int? port,
   out string? serviceName
)

Parameters

port
the port to query
serviceName
the service name if successful

Return Value

TRue if port was found
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ProtoCollNumbers Class
ProtoCollNumbers Members