Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
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)
Syntax
'Declaration
Private Function Remove ( _
key As KeyValuePair(Of String, SemanticValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, SemanticValue)).Remove
'Usage
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
)
Parameters
- key
Type: System.Collections.Generic.KeyValuePair<String, SemanticValue>
A key for a SemanticValue.
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.