LanguageSpecificStringDictionary.TryGetValue Method (XmlLanguage, String)


Retrieves the string value in the LanguageSpecificStringDictionary for a specified key, or language.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public bool TryGetValue(
	XmlLanguage key,
	out string value


Type: System.Windows.Markup.XmlLanguage

A value of type XmlLanguage.

Type: System.String

A value of type String.

Return Value

Type: System.Boolean

true if the LanguageSpecificStringDictionary contains an entry for key; otherwise false.

If the return value is true, value contains a copy of the string that is associated with the key value. If the return value is false, value is set to null.

.NET Framework
Available since 3.0
Return to top