語言

SemanticValue.IDictionary<String,SemanticValue>.TryGetValue 方法

定義

會取得與指定金鑰相關的 。SemanticValue

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Speech::Recognition::SemanticValue ^ % value) = System::Collections::Generic::IDictionary<System::String ^, System::Speech::Recognition::SemanticValue ^>::TryGetValue;
bool IDictionary<string,SemanticValue>.TryGetValue(string key, out System.Speech.Recognition.SemanticValue value);
abstract member System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.TryGetValue : string * SemanticValue -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.TryGetValue : string * SemanticValue -> bool
Function TryGetValue (key As String, ByRef value As SemanticValue) As Boolean Implements IDictionary(Of String, SemanticValue).TryGetValue

參數

key
String

一個 SemanticValue.

value
SemanticValue

要取得的。SemanticValue

傳回

true如果字典包含與指定鍵值的鍵值對;否則,。 false

適用於