Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

port property

Sets or retrieves the port number associated with a URL.


HRESULT value = object.put_port( v);HRESULT value = object.get_port(* p);

Property values

Type: BSTR

the port number associated with the URL. See 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.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.