Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

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.



Community Additions

© 2015 Microsoft