OPC Studio 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.

The value of this parameter can be null (Nothing in Visual Basic).

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.

The value of this parameter can be null (Nothing in Visual Basic).

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.

This method can return null (Nothing in Visual Basic).

Remarks

For non-null inputs, this operator is equivalent to ToUAEndpointDescriptor.

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