DWbemContext.Clone

[This is preliminary documentation and subject to change.]

The DWbemContext.Clone method makes a logical copy of the current DWbemContext object. This method can be useful when you need to make many calls that have largely identical DWbemContext objects.

Clone(
  [out] ppNewCopy  As Object 
) As Long
 

Parameters

ppNewCopy
DWbemContext type object. It receives a new object that is a clone of the current object. On error, a new object is not returned.

Return Values

WBEM_E_FAILED Unspecified error.
WBEM_E_INVALID_PARAMETER NOTHING was specified as a parameter, which is not legal.
WBEM_E_OUT_OF_MEMORY There was not enough memory to clone the object.
WBEM_NO_ERROR Success.