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



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc Namespace > ServerElement Class : Implicit Type Conversion Operator
The object to be expressed as a string.

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

Converts the object into a string usable for identification of the OPC server when passed to other methods. The value returned is the value of the UrlString property.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Operator Widening CType( _
   ByVal serverElement As ServerElement _
) As String
'Usage
 
[CanBeNull()]
public string operator implicit( 
   ServerElement serverElement
)
[CanBeNull()]
public:
operator String^ ( 
   ServerElement^ serverElement
)

Parameters

serverElement
The object to be expressed as a string.

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

Return Value

Returns the main characteristics of the object expressed as a string.

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

Remarks

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

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