OPC Studio User's Guide and Reference
TryGetValue Method (_ObjectObjectDictionary)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.Specialized.ComTypes Namespace > _ObjectObjectDictionary Interface : TryGetValue Method

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

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

Syntax
'Declaration
 
Function TryGetValue( _
   ByVal key As Object, _
   ByRef value As Object _
) As Boolean
'Usage
 
Dim instance As _ObjectObjectDictionary
Dim key As Object
Dim value As Object
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
bool TryGetValue( 
   object key,
   out object value
)
bool TryGetValue( 
   Object^ key,
   [Out] Object^ value
) 

Parameters

key

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

value

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

Remarks

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

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