ICollection(KeyValuePair(String, SemanticValue)).Remove Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Removes the specified key and SemanticValue from the collection.

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

Syntax

Visual Basic (Declaration)
Private Function Remove ( _
	key As KeyValuePair(Of String, SemanticValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, SemanticValue)).Remove
Visual Basic (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)
C#
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.

Implements

ICollection<(Of <(<'T>)>)>..::..Remove(T)

See Also