IMsMetaAttributeValueList.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. Attribute index in the collection.

Description

The Remove method removes an attribute from the collection by its index. Attribute index is passed by the Index parameter. This method returns True if the removal was successful.

Example

This example is a fragment of the code that must be executed to remove the attribute from the collection. Executing the example requires the AttrValList variable of the IMsMetaAttributeValueList type.

Sub UserProc;
Var
    …
    AttrValList: IMsMetaAttributeValueList;
Begin
    …

    MetaAttrVal := MetaAttrValList.FindByKey(MetaAttr.Key);
    If AttrValList.Remove(0) <> Null Then
        Debug.WriteLine("Removal performed successfully");
    Else
        Debug.WriteLine("The attribute was not removed");
    End If;
   …
End Sub UserProc;

After executing the example the first attribute is removed from the collection. The removal result is displayed in the console window.

See also:

IMsMetaAttributeValueList