勇芳软件工作室.汉化:  Windows Management Instrumentation > Scripting API for WMI > Scripting API Objects > SWbemNamedValueSet >

Remove Method

Previous pageReturn to chapter overviewNext page

描述

 

SWbemNamedValueSet对象的去掉方法从上下文中删除一个命名值。

 

PowerBASIC 语法

 

METHOD Remove ( _

BYVAL strName AS WSTRING, _

OPTIONAL BYVAL iFlags AS LONG _

)

 

参数

 

strName

 

BSTR.需要。要删除的值的名称

 

iFlags

 

LONG.保留。如果指定,此值必须为零。

 

OBJRESULT

 

错误(名称/十进制/十六进制)

含义

wbemErrFailed

-2147217407

&H80041001

未指定错误

wbemErrInvalidParameter

-2147217400

&H80041008

指定了无效参数,或者无法解析命名空间。

wbemErrNotFound

-2147217406

&H80041002

请求的方法不存在。

 

要求

 

客户

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

服务器

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

类型库

使用Wbemdisp.tlb。

Wbemdisp.inc。

DLL

需要Wbemdisp.dll。