OPC Studio User's Guide and Reference
Implicit Type Conversion Operator (UAPubSubConnectionElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.Configuration Namespace > UAPubSubConnectionElement Class : Implicit Type Conversion Operator
The PubSub connection element to be converted.

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

Converts a UAPubSubConnectionElement to a PubSub connection descriptor.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Widening CType( _
   ByVal pubSubConnectionElement As UAPubSubConnectionElement _
) As UAPubSubConnectionDescriptor
'Usage
 
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public UAPubSubConnectionDescriptor operator implicit( 
   UAPubSubConnectionElement pubSubConnectionElement
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
operator UAPubSubConnectionDescriptor^ ( 
   UAPubSubConnectionElement^ pubSubConnectionElement
)

Parameters

pubSubConnectionElement
The PubSub connection 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 PubSub connection descriptor that uses the parameters from the PubSub connection 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 ToUAPubSubConnectionDescriptor.

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