SWbemObjectSet对象是SWbemObject对象的集合。有关详细信息,请参阅访问集合.该对象不能由VBScript CreateObject调用创建。
您可以通过调用以下任何方法或其异步等效项来获取SWbemObjectSet对象:
| · | SWbemObject.Associators_ |
| · | SWbemObject.Instances_ |
| · | SWbemObject.References_ |
| · | SWbemObject.Subclasses_ |
| · | SWbemServices.AssociatorsOf |
| · | SWbemServices.ExecQuery |
| · | SWbemServices.InstancesOf |
| · | SWbemServices.ReferencesTo |
| · | SWbemServices.SubclassesOf |
注意SWbemObjectSet对象不支持可选的加和去掉集合方法。
注意因为在客户端需要相同的身份验证级别可能不会返回到宿的回调,建议您使用半异步而不是异步通信。有关详细信息,请参阅调用方法.
方法
SWbemObjectSet对象定义了以下方法。
方法 |
描述 |
项目 |
从集合中检索SWbemObject对象。这是对象的默认方法。 |
属性
SWbemObjectSet对象定义了以下属性。
属性 |
描述 |
计数 |
集合中的项目数。 |
安全_ |
用于读取或更改安全设置。 |
要求
客户 |
需要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。 |
DLL |
需要Wbemdisp.dll。 |


