OPC Studio User's Guide and Reference
EndpointDescriptor Property (UAInvalidReferenceException)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAInvalidReferenceException Class : EndpointDescriptor Property
The OPC UA endpoint descriptor related to the exception.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Property EndpointDescriptor As UAEndpointDescriptor
'Usage
 
Dim instance As UAInvalidReferenceException
Dim value As UAEndpointDescriptor
 
instance.EndpointDescriptor = value
 
value = instance.EndpointDescriptor
[CanBeNull()]
public UAEndpointDescriptor EndpointDescriptor {get; set;}
[CanBeNull()]
public:
property UAEndpointDescriptor^ EndpointDescriptor {
   UAEndpointDescriptor^ get();
   void set (    UAEndpointDescriptor^ value);
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

Remarks

This property can be null if the relation cannot be established.

Because the UAEndpointDescriptor has an implicit conversion from System.String and System.Uri, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the endpoint URL, or a so-called OPC UA endpoint descriptor string), or a System.Uri object, when setting this property, and the corresponding endpoint descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromString or FromUri static method instead.

Also, because the OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement and OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement have an implicit conversion to UAEndpointDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement or OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement (results from OPC UA discovery) in place of UAEndpointDescriptor when setting this property, and the corresponding endpoint descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can convert a (non-null) OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement or OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement to UAEndpointDescriptor using the OpcLabs.EasyOpc.UA.Discovery.UAApplicationElement.ToUAEndpointDescriptor or OpcLabs.EasyOpc.UA.Discovery.UADiscoveryElement.ToUAEndpointDescriptor method instead.

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