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

Item Method

Previous pageReturn to chapter overviewNext page

描述

 

SWbemPropertySet对象的项目方法从集合中获取一个命名为SWbemProperty的方法。这是此对象的默认方法。

 

PowerBASIC 语法

 

PROPERTY GET Item ( _

BYVAL strName AS WSTRING, _

OPTIONAL BYVAL iFlags AS LONG _

) AS ISWbemProperty

 

参数(仅限集属性)

 

strName

 

BSTR.需要。要检索的属性的名称。

 

iFlags

 

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

 

返回值(仅获取资源)

 

如果成功,则返回所请求的SWbemProperty对象。

 

OBJRESULT

 

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

含义

wbemErrFailed

-2147217407

&H80041001

未指定错误

wbemErrInvalidParameter

-2147217400

&H80041008

指定了无效参数。

wbemErrOutOfMemory

-2147217402

&H80041006

没有足够的内存来执行此方法。

 

要求

 

客户

需要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。