IMSVidAudioRendererDevices::Remove method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The Remove method removes an item from the collection.

Syntax

HRESULT Remove(
  [in] VARIANT v
);

Parameters

[in] v

VARIANT that specifies the index of the item to remove.

Return value

Returns an HRESULT value. Possible values include the following.

Return code 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 IMSVidAudioRendererDevices::get_Count - 1.

Requirements

Requirement Value
Minimum supported client Windows�XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidAudioRendererDevices Interface

IMSVidAudioRendererDevices::Add