port property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the port number associated with a URL.
Syntax
HRESULT value = object.put_port(BSTR v);HRESULT value = object.get_port(BSTR* p);
Property values
Type: BSTR
the port number associated with the URL. See remarks.
Value | Condition |
---|---|
Remarks
The port will resolve based on the default port for the protocol set in the HREF attribute: 21
for FTP, 80
for HTTP, and so forth.
Proprietary protocols that do not require a port return 0
or an empty string.
Build date: 6/12/2012