SemanticValue.ICollection<KeyValuePair<String,SemanticValue>>.Remove(KeyValuePair<String,SemanticValue>) 方法

定义

从集合中删除指定的键和 SemanticValueRemoves the specified key and SemanticValue from the collection.

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

参数

返回

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

实现

适用于