OPC Studio User's Guide and Reference
Port Property (UAEndpointDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAEndpointDescriptor Class : Port Property
The port number of the URI.
Syntax
'Declaration
 
<DebuggerBrowsableAttribute(DebuggerBrowsableState.Never)>
<DefaultValueAttribute(-1)>
<IgnoreDataMemberAttribute()>
<XmlIgnoreAttribute()>
Public Shadows Property Port As Integer
'Usage
 
Dim instance As UAEndpointDescriptor
Dim value As Integer
 
instance.Port = value
 
value = instance.Port
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
[DefaultValue(-1)]
[IgnoreDataMember()]
[XmlIgnore()]
public new int Port {get; set;}
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
[DefaultValue(-1)]
[IgnoreDataMember()]
[XmlIgnore()]
public:
new 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