SWbemRefresher.Add method
The SWbemRefresher.Add method adds a new SWbemRefreshableItem object to the collection in the SWbemRefresher object.
For an explanation of this syntax, see Document Conventions for the Scripting API.
Syntax
objRefreshItem = .Add( _
ByVal objWbemService, _
ByVal strInstancePath, _
[ 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.
-
strInstancePath
-
Required. String that contains the relative path of the object in the namespace. The path must contain an instance. The Index property of the returned SWbemRefreshableItem represents the index of the object 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 a single refreshable object is returned.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemRefresher |
IID |
IID_ISWbemRefresher |