IWbemClassObject::DeleteMethod method

Use the IWbemClassObject::DeleteMethod method to delete a method. This call is supported only if the current object is a CIM class definition. Method manipulation is not available from IWbemClassObject pointers which point to CIM instances.

Syntax


HRESULT DeleteMethod(
  [in]  LPCWSTR wszName
);

Parameters

wszName [in]

Method name to be removed from the class definition.

Return value

This method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.

Return codeDescription
WBEM_S_NO_ERROR

The method was deleted from the CIM class definition.

WBEM_E_NOT_FOUND

The method did not exist.

WBEM_E_OUT_OF_MEMORY

There was not enough memory to complete the call.

 

Remarks

You may not delete methods inherited from parent classes.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

CIMWin32.dll;
Esscli.dll;
Evntrprv.dll;
Fastprox.dll;
Framedyn.dll;
Krnlprov.dll;
Ncprov.dll;
Wbemcore.dll;
Wbemess.dll;
Wmipiprt.dll

See also

IWbemClassObject
IWbemClassObject::GetMethod
IWbemClassObject::PutMethod

 

 

Show:
© 2014 Microsoft