描述
NewEnum属性在集合的枚举对象上返回一个IEnumVARIANT接口。此属性从Microsoft ®Visual Basic ®和Visual Basic脚本版(VBScript)中隐藏。
PowerBASIC 语法
METHOD NewEnum_ () AS IUnknown |
返回值
IUnknown.引用对象的IUnknown接口。
OBJRESULT
如果成功返回S_OK,否则返回错误值。
备注
该属性隐藏在Visual Basic和VBScript中。此属性是用于支持枚举集合的标准属性,例如Visual Basic中的语法。
For Each Obj in Collection
'
Next Obj
要求
客户 |
需要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。 |