KeyDictionary.Remove MethodKeyDictionary.Remove MethodKeyDictionary::Remove Method

Removes the key with the specified name from this KeyDictionaryKeyDictionaryKeyDictionary.

Syntax

Public Function Remove( _
    key As System.Xml.XmlQualifiedName _
) As Boolean
public bool Remove(
    System.Xml.XmlQualifiedName key
)
public:
virtual bool Remove(
    System.Xml::XmlQualifiedName^ key
) sealed
 

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the key was successfully removed from the KeyDictionaryKeyDictionaryKeyDictionary; otherwise falseFalsefalse. This method also returns falseFalsefalse if there is no key with the specified name in the KeyDictionaryKeyDictionaryKeyDictionary.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionkey is null a null reference (Nothing in Visual Basic) nullptr.