SemanticValue.ICollection<KeyValuePair<String, SemanticValue>>.Remove Method

Removes the specified key and SemanticValue from the collection.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)


Private Function Remove ( _
    key As KeyValuePair(Of String, SemanticValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, SemanticValue)).Remove
Dim instance As SemanticValue
Dim key As KeyValuePair(Of String, SemanticValue)
Dim returnValue As Boolean

returnValue = CType(instance, ICollection(Of KeyValuePair(Of String, SemanticValue))).Remove(key)
bool ICollection<KeyValuePair<string, SemanticValue>>.Remove(
    KeyValuePair<string, SemanticValue> key


Return Value

Type: System.Boolean
Returns true if the key/value pair was successfully removed from the collection; otherwise the method returns false. This method also returns false if the key/value pair is not found in the collection.



See Also


SemanticValue Class

SemanticValue Members

Microsoft.Speech.Recognition Namespace