QuickOPC User's Guide and Reference
Implicit Type Conversion Operator (UADiscoveryElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UADiscoveryElement Class : Implicit Type Conversion Operator
The discovery element to be converted.
Converts a UADiscoveryElement to an endpoint descriptor.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Widening CType( _
   ByVal discoveryElement As UADiscoveryElement _
) As UAEndpointDescriptor
'Usage
 
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public UAEndpointDescriptor operator implicit( 
   UADiscoveryElement discoveryElement
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
operator UAEndpointDescriptor^ ( 
   UADiscoveryElement^ discoveryElement
)

Parameters

discoveryElement
The discovery element to be converted.

Return Value

For a non-null input, returns the endpoint descriptor that corresponds to the discovery URL of the discovery element. Returns null if the input is null.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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