CharacterMappingDictionary.TryGetValue Method (int, out string)CharacterMappingDictionary.TryGetValue Method (Integer, ByRef String)CharacterMappingDictionary::TryGetValue Method (int, String^%)

Gets the string to which a given Unicode codepoint is mapped if such a mapping exists.

Syntax

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

Parameters

key

Type: System.Int32System.Int32System::Int32

The mapped Unicode codepoint.

value

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

Receives to stringStringString to which the Unicode codepoint key is mapped, if it exists.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the mapping exists; otherwise falseFalsefalse.