DWbemContext.GetValue

[This is preliminary documentation and subject to change.]

The DWbemContext.GetValue method returns the value of the named property.

GetValue(
  [in] NameIndex As String,
  [in] lFlags As Long,
  [out] pValue As VARIANT  
) As Long
 

Parameters

NameIndex
The name of the property for which the value is to be retrieved. lFlags

Reserved. It must be zero.

pValue
This parameter cannot be NULL, and it must be of type VARIANT. If there is no error, the VARIANT is set to contain the context value. If an error code is returned, the VARIANT in pValue is left unmodified.

It is possible that an entire DWbemClassObject can be returned inside the VARIANT. If that is the case, CIM_OBJECT is the VARIANT type.

Return Values

WBEM_E_NOT_FOUND The requested value was not found.
WBEM_E_INVALID_PARAMETER An invalid parameter was specified, or the namespace could not be parsed.
WBEM_E_OUT_OF_MEMORY There was not enough memory to complete the operation.
WBEM_NO_ERROR Success.

See Also

DWbemContext.SetValue