port property

Sets or retrieves the port number associated with a URL.

Syntax

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.

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.