SWbemObjectPath 对象的 SetAsClass 方法强制路径寻址 WMI 类。
此属性是只写的。
语法
SWbemObjectPath.SetAsClass
属性值
错误代码
获取或设置 SetAsClass 属性后,Err 对象可能包含以下错误代码。
-
wbemErrFailed - 2147749889 (0x80041001)
-
错误。
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 |
Windows Vista |
| 最低受支持的服务器 |
Windows Server 2008 |
| 标头 |
|
| 类型库 |
|
| DLL |
|
| CLSID |
CLSID_SWbemObjectPath |
| IID |
IID_ISWbemObjectPath |