SWbemLastError object
The methods and properties of the SWbemLastError object contain and manipulate error objects. The methods and properties of this object are exactly the same as those of the SWbemObject object, but are used to contain error information instead of WMI class information. This object can be created by the VBScript CreateObject call.
You can create an SWbemLastError error object to inspect the extended error information that is associated with a previous method call. If error information is not available, an attempt to create an error object will fail. If the call succeeds and an error object returns, the status of the object is reset. Further attempts to retrieve an error object will fail until a new error occurs. If you make an asynchronous call that fails, an SWbemLastError object may be returned to you by the SWbemSink.OnCompleted event in the objWbemErrorObject parameter.
Members
The SWbemLastError object has these types of members:
Methods
The SWbemLastError object has these methods.
| Method | Description |
|---|---|
| Associators_ |
Not used. The SWbemObject object provides the same method. |
| AssociatorsAsync_ |
Not used. The SWbemObject object provides the same method. |
| Clone_ |
Makes a copy of the current object. |
| CompareTo_ |
Tests two objects for equality. |
| Delete_ |
Not used. The SWbemObject object provides the same method. |
| DeleteAsync_ |
Not used. The SWbemObject object provides the same method. |
| ExecMethod_ |
Not used. The SWbemObject object provides the same method. |
| ExecMethodAsync_ |
Not used. The SWbemObject object provides the same method. |
| GetObjectText_ |
Retrieves the textual representation of the object written with MOF syntax. |
| Instances_ |
Not used. The SWbemObject object provides the same method. |
| InstancesAsync_ |
Not used. The SWbemObject object provides the same method. |
| Put_ |
Not used. The SWbemObject object provides the same method. |
| PutAsync_ |
Not used. The SWbemObject object provides the same method. |
| References_ |
Not used. The SWbemObject object provides the same method. |
| ReferencesAsync_ |
Not used. The SWbemObject object provides the same method. |
| SpawnDerivedClass_ |
Not used. The SWbemObject object provides the same method. |
| SpawnInstance_ |
Not used. The SWbemObject object provides the same method. |
| Subclasses_ |
Not used. The SWbemObject object provides the same method. |
| SubclassesAsync_ |
Not used. The SWbemObject object provides the same method. |
Properties
The SWbemLastError object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Derivation_ | Read-only |
Not used. The SWbemObject object provides the same method. |
|
Methods_ | Read-only |
Not used. The SWbemObject object provides the same method. |
| Read-only |
Contains an SWbemObjectPath object that represents the object path of the current class or instance. | |
| Read-only |
Represents the collection of properties of the SWbemLastError object. This property is an SWbemPropertySet object. | |
|
Qualifiers_ | Read-only |
Not used. The SWbemObject object provides the same method. |
|
Security_ | Read-only |
Not used. The SWbemObject object provides the same method. |
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Type library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012