TryGetValue Method

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)

virtual bool TryGetValue(
	XmlLanguage^ key,
	[OutAttribute] String^% value
) sealed


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
© 2016 Microsoft