Chili.Opf3 Send comments on this topic.
TryGetValue Method
See Also 
Chili.Opf3 Namespace > PersistentQueriesProvidersCollection Class : TryGetValue Method




key
The persistent type 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.
Gets the value associated with the specified type.

Syntax

Visual Basic (Declaration) 
Public Function TryGetValue( _
   ByVal key As Type, _
   ByRef value As IPersistentQueriesProvider _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PersistentQueriesProvidersCollection
Dim key As Type
Dim value As IPersistentQueriesProvider
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
C# 
public bool TryGetValue( 
   Type key,
   out IPersistentQueriesProvider value
)
Managed Extensions for C++ 
public: bool TryGetValue( 
   Type* key,
   [PARAMFLAG::Out] IPersistentQueriesProvider* value
) 
C++/CLI 
public:
bool TryGetValue( 
   Type^ key,
   [Out] IPersistentQueriesProvider^ value
) 

Parameters

key
The persistent type 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 PersistentQueriesProvidersCollection contains an element with the specified key; otherwise, false.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also