Connectivity Software User's Guide and Reference
GetObsolescenceMessage Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UASchemes Class : GetObsolescenceMessage Method
The URI scheme to check.

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

Gets the message that describes the reason for obsolescence for the specified URI scheme, if the scheme is obsolete in OPC UA.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function GetObsolescenceMessage( _
   ByVal scheme As String _
) As String
'Usage
 
Dim scheme As String
Dim value As String
 
value = UASchemes.GetObsolescenceMessage(scheme)
[JetBrains.Annotations.NotNull()]
public static string GetObsolescenceMessage( 
   string scheme
)
[JetBrains.Annotations.NotNull()]
public:
static String^ GetObsolescenceMessage( 
   String^ scheme
) 

Parameters

scheme
The URI scheme to check.

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

Return Value

The obsolescence message if the scheme is obsolete; otherwise, 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