LocalPortUsed Property

Returns the local port used in the last file transfer.

Syntax

NSFile.LocalPortUsed

Remarks

This property can be used to determine the IP port of the local computer. Note that the LocalPort property returns the local port of the computer before a transfer starts.

This property would typically be used if the LocalPort property were set to 0 (zero), indicating that any valid unused port is to be chosen for the receive. To find out which port was actually used, read the LocalPortUsed property. If LocalPort was set to a non-zero value, then LocalPortUsed is the same as LocalPort.

This property is available after at least one file transfer.

© 1996-1998 Microsoft Corporation. All rights reserved.