uri_builder::port Method
Get the port component of the URI. Returns -1 if no port is specified.
int port() const;
Return Value
The URI port as an integer.
Requirements
Header: uri_builder.h
Namespace: web::http
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Get the port component of the URI. Returns -1 if no port is specified.
int port() const;
The URI port as an integer.
Header: uri_builder.h
Namespace: web::http