Connectivity Software User's Guide and Reference
FromExternalKeyValuePairs Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA Namespace > UAKeyValueDictionary Class : FromExternalKeyValuePairs Method
The collection of key-value pairs to add to the dictionary, or null to create an empty dictionary.

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

Creates a new OPC-UA key-value dictionary from a collection of key-value pairs.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function FromExternalKeyValuePairs( _
   ByVal keyValuePairs As IEnumerable(Of UAKeyValuePair) _
) As UAKeyValueDictionary
'Usage
 
Dim keyValuePairs As IEnumerable(Of UAKeyValuePair)
Dim value As UAKeyValueDictionary
 
value = UAKeyValueDictionary.FromExternalKeyValuePairs(keyValuePairs)
[JetBrains.Annotations.NotNull()]
public static UAKeyValueDictionary FromExternalKeyValuePairs( 
   IEnumerable<UAKeyValuePair> keyValuePairs
)
[JetBrains.Annotations.NotNull()]
public:
static UAKeyValueDictionary^ FromExternalKeyValuePairs( 
   IEnumerable<UAKeyValuePair^>^ keyValuePairs
) 

Parameters

keyValuePairs
The collection of key-value pairs to add to the dictionary, or null to create an empty dictionary.

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

Return Value

A new OPC-UA key-value dictionary containing the specified key-value pairs. Null pairs are skipped.

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