Windows Media Services SDK banner art
PreviousNext

LocalPort Property

Returns or sets the local port of the File Transfer object. The default is 0 (zero)—that is, any valid, unused port.

Syntax

NSFile.LocalPort

Remarks

This property is always available.

If the LocalPort value is 0, any unused valid port is chosen once the transfer has started. The caller can then determine which local port was chosen by checking the LocalPort property again after the transfer has started.

In order to avoid resetting the LocalPort to 0 after a read, use the LocalPortUsed property to see which port was used for a file transfer.

For more information about the values of this property, see the Windows Sockets documentation.

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.