OPC Studio User's Guide and Reference
Explicit Type Conversion Operator (UACommunicationProfile)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UACommunicationProfile Class : Explicit Type Conversion Operator
Communication profile specifier.

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

Converts a string (communication profile specifier) to a UACommunicationProfile object.
Syntax
'Declaration
 
<JetBrains.Annotations.CanBeNullAttribute()>
<JetBrains.Annotations.ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Narrowing CType( _
   ByVal specifier As String _
) As UACommunicationProfile
'Usage
 
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.ContractAnnotation("null => null; notnull => notnull")]
public UACommunicationProfile operator explicit( 
   string specifier
)
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.ContractAnnotation("null => null; notnull => notnull")]
public:
UACommunicationProfile^ operator explicit( 
   String^ specifier
)

Parameters

specifier
Communication profile specifier.

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

Return Value

The communication profile object described by the specifier. null if the specifier passed in was null.

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

Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

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