SWbemRefresher.AddEnum method

The SWbemRefresher.AddEnum method adds a new enumerator to the SWbemRefresher object. This enumerator is for all the instances of the class that is specified in the strClass parameter.

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

Syntax


objRefreshEnum = .AddEnum( _
  ByVal objWbemService, _
  ByVal strClass, _
  [ ByVal iFlags ], _
  [ ByVal objWbemNamedvalueSet ] _
)

Parameters

objWbemService

Required. An SWbemServices object that represents a connection to the namespace in which the object that is being added to the refresher resides.

strClass

Required. String that contains the class that is being added to the refresher. This class is used as an enumerator of the instances of the class. The Index property of the returned SWbemRefreshableItem represents the index of the enumerator in the refresher collection.

iFlags [optional]

String that contains the object path of the object for which the method is executed.

objWbemNamedvalueSet [optional]

Typically, this is undefined. Otherwise, this is an SWbemNamedValueSet object whose elements represent the context information that can be used by the provider that services the request. A provider that supports or requires such information must document the recognized value names, data type of the value, allowed values, and semantics.

Return value

If the call is successful, an SWbemRefreshableItem object that contains an enumerator for all the instances for the specified class is returned.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wbemdisp.h

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

CLSID

CLSID_SWbemRefresher

IID

IID_ISWbemRefresher

See also

SWbemRefresher

 

 

Show: