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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UAEndpointDescriptor Interface : Port Property
The port number of the URI.
Syntax
'Declaration
 
Property Port As Integer
'Usage
 
Dim instance As _UAEndpointDescriptor
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 OpcLabs.BaseLib.ResourceDescriptor.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