Click or drag to resize

TouchToneTryParse Method

Converts the character representation of a touch tone key into an instance of the TouchTone class. A return value indicates whether the conversion succeeded.

Namespace: GSF.Media.Sound
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.205-beta
Syntax
public static bool TryParse(
	char key,
	out TouchTone result
)
View Source

Parameters

key  Char
A character containing a touch tone key to convert.
result  TouchTone
When this method returns, contains an instance of the TouchTone class equivalent to the touch tone key, if the conversion succeeded, or null if the conversion failed. The conversion fails if the key parameter is not a valid touch tone.

Return Value

Boolean
true if s was converted successfully; otherwise, false.
See Also