描述
SWbemMethodSet对象的项目方法从集合返回一个名为SWbemMethod的对象。
PowerBASIC 语法
PROPERTY GET Item ( _ BYVAL strName AS WSTRING, _ OPTIONAL BYVAL iFlags AS LONG _ ) AS ISWbemMethod |
参数
strName
BSTR.需要。要检索的方法的名称。
iFlags
LONG.保留。默认值为0。
返回值
如果成功,返回所请求的SWbemMethod对象。
OBJRESULT
错误(名称/十进制/十六进制) |
含义 |
wbemErrInvalidParameter -2147217400 &H80041008 |
iFlags参数无效。 |
wbemErrFailed -2147217407 &H80041001 |
未指定错误 |
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。 |