共用方式為


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

適用於