勇芳软件工作室.汉化:  Windows Management Instrumentation > COM API for WMI > Interfaces > IWbemContext >

DeleteAll Method

Previous pageReturn to chapter overviewNext page

描述

 

IWbemContext.DeleteAll方法从当前对象中删除所有命名的上下文值,从而清空对象。

 

C++ 语法

 

HRESULT DeleteAll();

 

PowerBASIC 语法

 

METHOD DeleteAll ()

 

返回值

 

此方法返回一个HRESULT,指示方法调用的状态。下表列出了HRESULT中包含的值。

 

退货代码

描述

WBEM_E_FAILED

已经有一般的失败。

WBEM_S_NO_ERROR

通话成功。

 

要求

 

客户

需要Windows Vista,Windows XP,Windows 2000 Professional,Windows NT Workstation 4.0 SP4及更高版本,Windows Me,Windows 98或Windows 95。

服务器

需要Windows Server 2008,Windows Server 2003,Windows 2000 Server或Windows NT Server 4.0 SP4及更高版本。

在Wbemcli.inc中声明。

DLL

需要Esscli.dll。

需要Fastprox.dll。

需要Framedyn.dll。

需要Wbemcomn.dll。

需要Wbemcore.dll。

需要Wbemess.dll。

需要Wmipjobj.dll。