[This is preliminary documentation and subject to change.]
The DIWbemServices.GetObject method locates an object by path.
This method retrieves an object, either a class definition or an instance, based on the object's path. This method only retrieves objects from the namespace associated with the current DIWbemServices object.
DIWbemServices.GetObject( [in] ObjectPath
As String,
[in]
lFlags
As Long,
[in]
pCtx
As Object,
[out, OPTIONAL]
ppObject
As Object,
[out, OPTIONAL]
ppCallResult
As Object) As Long
WBEM_E_ACCESS_DENIED | The current user does not have permission to access the object. |
WBEM_E_FAILED | Unspecified error. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_INVALID_PATH | The specified path was invalid. |
WBEM_E_NOT_FOUND | The requested object could not be found. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_E_RPC_FAILURE | The RPC link between the client and CIMOM has failed. |
WBEM_NO_ERROR | Success. |
For more information on return values see Visual Basic error handeling and return values.
Class Creation, Error Objects, DIWbemCallResult, DIWbemServices.GetObjectAsync, Object Paths