OPC Studio User's Guide and Reference
GetSingleDataEncodingName(String) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine Namespace > UATransportProfileUriStrings Class > GetSingleDataEncodingName Method : GetSingleDataEncodingName(String) Method
The transport profile URI string for which the data encoding name should be obtained.

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

Obtains the single data encoding name for the given transport profile URI.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Overloads Shared Function GetSingleDataEncodingName( _
   ByVal transportProfileUriString As String _
) As String
'Usage
 
Dim transportProfileUriString As String
Dim value As String
 
value = UATransportProfileUriStrings.GetSingleDataEncodingName(transportProfileUriString)
[JetBrains.Annotations.NotNull()]
public static string GetSingleDataEncodingName( 
   string transportProfileUriString
)
[JetBrains.Annotations.NotNull()]
public:
static String^ GetSingleDataEncodingName( 
   String^ transportProfileUriString
) 

Parameters

transportProfileUriString
The transport profile URI string for which the data encoding name should be obtained.

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

Return Value

If the transport profile given by transportProfileUriString uses a single data encoding, returns the name of this data encoding. Otherwise, returns an empty string.

This method never returns null (Nothing in Visual Basic).

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