SWbemRefresher.Item method

The SWbemRefresher.Item method returns the specified SWbemRefreshableItem from the collection.

For an explanation of this syntax, see Document Conventions for the Scripting API.

Syntax

objItem = .Item( _
  ByVal lIndex _
)

Parameters

lIndex

Index value of the item in the collection.

Return value

If the call is successful, the specified SWbemRefreshableItem object is returned.

Error codes

If the refresher has no item with the specified index, wbemErrNotFound is generated.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

SWbemRefresher

 

 

Show:
© 2014 Microsoft