Microsoft DirectX 8.1 (C++)

IMSVidFeatures::Remove

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The Remove method removes an item from the collection.

Syntax

HRESULT Remove(
  VARIANT  v
);

Parameters

  v

[in]  VARIANT that specifies the index of the item to remove.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
DISP_E_BADINDEX The index is out of range.
DISP_E_TYPEMISMATCH Wrong VARIANT type.
E_ACCESSDENIED The collection is read-only; cannot remove any items.
E_UNEXPECTED Unexpected error.

Remarks

The v parameter must be a VARIANT that contains an integer type (VT_I4). The valid range is from 0 to IMSVidFeatures::get_Count - 1.

See Also