Skip to content

Latest commit

 

History

History
87 lines (70 loc) · 3.49 KB

nf-wbemcli-iwbemclassobject-delete.md

File metadata and controls

87 lines (70 loc) · 3.49 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wbemcli.IWbemClassObject.Delete
IWbemClassObject::Delete (wbemcli.h)
The IWbemClassObject::Delete method deletes the specified property from a CIM class definition and all of its qualifiers.
Delete
Delete method [Windows Management Instrumentation]
Delete method [Windows Management Instrumentation]
IWbemClassObject interface
IWbemClassObject interface [Windows Management Instrumentation]
Delete method
IWbemClassObject.Delete
IWbemClassObject::Delete
_hmm_iwbemclassobject_delete
wbemcli/IWbemClassObject::Delete
wmi.iwbemclassobject_delete
wmi\iwbemclassobject_delete.htm
wmi
01ccfad7-8529-4eb5-ae3a-cc1657022999
12/05/2018
Delete, Delete method [Windows Management Instrumentation], Delete method [Windows Management Instrumentation],IWbemClassObject interface, IWbemClassObject interface [Windows Management Instrumentation],Delete method, IWbemClassObject.Delete, IWbemClassObject::Delete, _hmm_iwbemclassobject_delete, wbemcli/IWbemClassObject::Delete, wmi.iwbemclassobject_delete
wbemcli.h
Wbemidl.h
Windows
Windows Vista
Windows Server 2008
WbemCli.idl
WbemUuid.lib
CIMWin32.dll; Esscli.dll; Fastprox.dll; FrameDyn.dll; FrameDynOS.dll; Krnlprov.dll; Ncprov.dll; Wbemcore.dll; Wbemess.dll; Wmipiprt.dll
Windows
19H1
IWbemClassObject::Delete
wbemcli/IWbemClassObject::Delete
c++
APIRef
kbSyntax
COM
CIMWin32.dll
Esscli.dll
Fastprox.dll
FrameDyn.dll
FrameDynOS.dll
Krnlprov.dll
Ncprov.dll
Wbemcore.dll
Wbemess.dll
Wmipiprt.dll
IWbemClassObject.Delete

IWbemClassObject::Delete

-description

The IWbemClassObject::Delete method deletes the specified property from a CIM class definition and all of its qualifiers. Because instances cannot have contents that are different from the owning class, delete operations for properties are only possible on class definitions. If you invoke Delete on a property in an instance, the operation succeeds; however, rather than removing the value, it is simply reset to the default value for the class.

It is not possible to delete a property inherited from a parent class. However, if an override default value for a property inherited from a parent class was specified, it is possible to revert to the parent's default value by invoking this method. In this case, WBEM_S_RESET_TO_DEFAULT is returned.

System properties cannot be deleted.

-parameters

-param wszName [in]

Property name to delete. This must point to a valid LPCWSTR. It is treated as read-only.

-returns

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

-see-also

IWbemClassObject

WMI System Properties