CharacterMappingDictionary.TryGetValue Method (char, out string)CharacterMappingDictionary.TryGetValue Method (Char, ByRef String)CharacterMappingDictionary::TryGetValue Method (char, String^%)

Gets the string to which key is mapped if such a mapping exists.

Syntax

Public Function TryGetValue( _
    key As Char, _
    <Out>value As ByRef String _
) As Boolean
public bool TryGetValue(
    char key,
    out string value
)
public:
bool TryGetValue(
    char key, 
    [Out] String^% value
)
 

Parameters

key

Type: System.CharSystem.CharSystem::Char

The mapped character.

value

Type: out System.StringByRef System.StringSystem::String^%

Receives to string to which key is mapped, if it exists.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the mapping exists; otherwise falseFalsefalse.