TryGetValue Method

Summary

Gets the value associated with the specified key.

Syntax
C#
VB
C++
public virtual bool TryGetValue( 
   TKey key, 
   out TValue value 
) 
  
Public Overridable Function TryGetValue( _ 
   ByVal key As TKey, _ 
   ByRef value As TValue _ 
) As Boolean 
public: 
virtual bool TryGetValue(  
   TKey^ key, 
   [Out] TValue^ value 
)  

Parameters

key
The key whose value to get.

value
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

true if the object that implements IDictionary contains an element with the specified key; otherwise, false.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionkey is null.
Requirements

Target Platforms

Help Version 20.0.2019.11.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly