Read only
About PNA Options

GetPortNumber Method


Description

Returns the port number that is associated with the specified port name. These numbers are used with several commands to specify a PNA port.

To learn more, see Remotely Specifying a Source Port.

 VB Syntax

value = object.GetPortNumber (portName)

Variable

(Type) - Description

value

(Long) - Variable to store the returned Port Number integer value.

object

A Channel (object) - always more complete than capabilities object.

A Capabilities (object) - use when a channel is not available

portName

(String) Name of the PNA port.

Return Type

Long Integer

Default

Not Applicable

Examples

value = chan.GetPortNumber ("Src2 Out1") 'Read

C++ Syntax

HRESULT GetPortNumber(BSTR name, long *number);

Interface

IChannel13

ICapabilities4