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



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

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

Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Overloads Shared Function GetSingleDataEncodingName( _
   ByVal transportProfileUri As Uri _
) As String
'Usage
 
Dim transportProfileUri As Uri
Dim value As String
 
value = UATransportProfileUriStrings.GetSingleDataEncodingName(transportProfileUri)
[JetBrains.Annotations.NotNull()]
public static string GetSingleDataEncodingName( 
   Uri transportProfileUri
)
[JetBrains.Annotations.NotNull()]
public:
static String^ GetSingleDataEncodingName( 
   Uri^ transportProfileUri
) 

Parameters

transportProfileUri
The transport profile URI 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 transportProfileUri 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