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



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

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

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

Parameters

transportProfileUriString
The transport profile URI string for which the protocol 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 protocol, returns the name of this protocol. 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