You can use the methods of an
SWbemServices object to perform operations against a namespace on either a local host or a remote host. This object cannot be created by the VBScript CreateObject call.
Methods
The SWbemServices object defines the following methods.
| Method | Description |
AssociatorsOf |
Returns a collection of objects (classes or instances) that are associated with a specified object.
|
AssociatorsOfAsync |
Asynchronously returns a collection of objects (classes or instances) that are associated with a specified object.
|
Delete |
Deletes the class or instance that is specified in the object path.
|
DeleteAsync |
Asynchronously deletes the class or instance that is specified in the object path.
|
ExecMethod |
Executes a method that is exported by a method provider.
|
ExecMethodAsync |
Asynchronously executes a method that is exported by a method provider.
|
ExecNotificationQuery |
Executes a query to receive events.
|
ExecNotificationQueryAsync |
Asynchronously executes a query to receive events.
|
ExecQuery |
Executes a query to retrieve objects.
|
ExecQueryAsync |
Asynchronously executes a query to retrieve objects.
|
Get |
Retrieves an object, that is either a class definition or an instance, based on the object path.
|
GetAsync |
Asynchronously retrieves an object, that is either a class definition or an instance, based on the object path.
|
InstancesOf |
Returns the instances of a specified class according to the user-specified selection criteria.
|
InstancesOfAsync |
Asynchronously returns the instances of a specified class according to the user-specified selection criteria.
|
ReferencesTo |
Returns a collection of all association classes or instances that refer to a specific source class or instance.
|
ReferencesToAsync |
Asynchronously returns a collection of all association classes or instances that refer to a specific class or instance.
|
SubclassesOf |
Returns a SWbemObjectSet object.
|
SubclassesOfAsync |
Asynchronously returns a collection of subclasses for a specified class.
|
Properties
The SWbemServices object defines the following property.
| Property | Access type | Description |
Security_ | Read-only | Used to get or set the security settings for an SWbemServices object.
|
Remarks
The methods can be called in either the synchronous mode, the asynchronous mode, or the semisynchronous mode. For more information see Calling a Method.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Type Library | Wbemdisp.tlb |
| DLL | Wbemdisp.dll |
See Also
- Scripting API Objects
- Calling a Method
Send comments about this topic to Microsoft
Build date: 11/3/2009