Export (0) Print
Expand All

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.

ValueCondition

 

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/6/2012

Community Additions

Show:
© 2014 Microsoft