Gets the port number used to connect to the Uri.Host referenced by the current instance.
A int containing the port number, or -1 if no port is used by the URI Uri.Scheme . If no port was specified as part of the URI used to construct the current instance, the Uri.Port property returns the default port for the URI scheme.
This property is read-only.
Note:The following table lists the default port number for each supported scheme.
Scheme Port file -1 ftp 21 gopher 70 http 80 https 43 mailto 25 news 119 nntp 119
Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0