QuickOPC User's Guide and Reference
Port Property (_ObjectDescriptor)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComTypes Namespace > _ObjectDescriptor Interface : Port Property
The port number of the URI.
Syntax
'Declaration
 
Property Port As Integer
'Usage
 
Dim instance As _ObjectDescriptor
Dim value As Integer
 
instance.Port = value
 
value = instance.Port
int Port {get; set;}
property int Port {
   int get();
   void set (    int value);
}
Remarks
The port number defines the protocol port for contacting the server referenced in the URI. If a port is not specified as part of the URI, the Port property returns the value -1 to indicate that the server uses the default value for the protocol.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also