Items.Remove method

Removes the designated Item.

Syntax

Items.Remove( _
  ByVal Index As LONG _
) As HRESULT

Parameters

Index [in]

Type: LONG

Required. Long value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

For example code, see Implement a Windows Script Host Script that Runs Automatically in Shared Samples.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Items