SemanticValue.ICollection<KeyValuePair<String,SemanticValue>>.Remove 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从集合中删除指定的键和 SemanticValue。
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);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Remove : System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.Remove : System.Collections.Generic.KeyValuePair<string, System.Speech.Recognition.SemanticValue> -> bool
Function Remove (key As KeyValuePair(Of String, SemanticValue)) As Boolean Implements ICollection(Of KeyValuePair(Of String, SemanticValue)).Remove
参数
SemanticValue 的键。
返回
如果从集合中成功移除了键/值对,则为 true
;否则为 false
。 如果在集合中找不到该键/值对,此方法也会返回 false
。