Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic applies to Windows XP or later.
The Remove method removes an item from the collection.
Syntax
HRESULT Remove(
  [in]  VARIANT v
);
Parameters
- v [in]
 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 | Index out of range. | 
| DISP_E_TYPEMISMATCH | Wrong VARIANT type. | 
| E_ACCESSDENIED | This collection is read-only; no items can be removed from it | 
| 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 IMSVidInputDevices::get_Count() - 1.
Requirements
| Header | Declared in Dshow.h. | 
| DLL | Requires Quartz.dll. | 
See Also
IMSVidInputDevices Interface
IMSVidInputDevices::Add
Send comments about this topic to Microsoft
Build date: 12/4/2008