SemanticValue.IDictionary<String,SemanticValue>.Remove(String) 方法

定义

从字典中移除指定的键和 SemanticValueRemoves the specified key and SemanticValue from the dictionary.

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Speech.Recognition.SemanticValue>.Remove(System::String ^ key) = System::Collections::Generic::IDictionary<System::String ^, System::Speech::Recognition::SemanticValue ^>::Remove;
bool IDictionary<string,SemanticValue>.Remove (string key);
Function Remove (key As String) As Boolean Implements IDictionary(Of String, SemanticValue).Remove

参数

key
String

SemanticValue 的键。A key for a SemanticValue.

返回

如果从目录中成功移除了键/值对,则为 true;否则为 falsetrue if the key/value pair was successfully removed from the dictionary; otherwise, false. 如果在字典中未找到键/值对,则此方法也会返回 falseThis method also returns false if the key/value pair is not found in the dictionary.

实现

适用于