勇芳软件工作室.汉化:  Windows Management Instrumentation > COM API for WMI > Interfaces >

IWbemClassObject

Previous pageReturn to chapter overviewNext page

IWbemClassObject接口包含并操作类定义和类对象实例。

 

用户和提供者不应该实现这个接口。WMI提供的实现是唯一被支持的实现。

 

从WMI客户端的角度来看,此接口始终处于进程中。Write()操作仅影响对象的本地副本,并且读取(得到)操作始终从本地副本检索值。只有当使用IWbemServices界面上的方法读取或写入整个对象时,才能对WMI执行更新。此类更新的示例包括:IWbemServices.PutInstanceIWbemServices.PutClass.

 

方法

 

IWbemClassObject界面继承了IUnknown接口的方法。

 

此外,IWbemClassObject定义了以下方法。

 

方法

描述

BeginEnumeration

开始属性的枚举。

BeginMethodEnumeration

开始枚举对象的方法。

克隆

制作当前对象的副本。

CompareTo

测试两个对象的平等。

删除

从对象中删除指定的属性。

DeleteMethod

删除一个方法。

EndEnumeration

结束以BeginEnumeration开始的枚举。

EndMethodEnumeration

结束枚举对象的方法。

得到

获取特定的属性值。

GetMethod

获取特定方法的输入和输出参数定义。

GetMethodOrigin

报告定义方法的类。

GetMethodQualifierSet

返回特定方法的限定符集对象。

GetNames

获取对象中属性名称的列表。

GetObjectText

以托管对象格式(MOF)语法获取对象的文本再现。

GetPropertyOrigin

报告引入特定属性的类。

GetPropertyQualifierSet

允许访问特定属性的限定符。

GetQualifierSet

允许访问整个对象的限定符集。

InheritsFrom

报告当前对象是否继承自特定类。

下一个

在初始调用BeginEnumeration之后,在枚举中获取下一个属性。

NextMethod

在方法的枚举中检索下一个方法定义。

更新或创建特定的属性值。

PutMethod

创建一个方法。

SpawnDerivedClass

从当前类创建一个新的派生类。

SpawnInstance

从当前类创建一个新的实例。

 

要求

 

客户

需要Windows Vista,Windows XP,Windows 2000 Professional,Windows NT Workstation 4.0 SP4及更高版本,Windows Me,Windows 98或Windows 95。

服务器

需要Windows Server 2008,Windows Server 2003,Windows 2000 Server或Windows NT Server 4.0 SP4及更高版本。

在Wbemcli.inc中声明。

DLL

需要Cimwin32.dll。

需要Esscli.dll。

需要Evntrprv.dll。

需要Fastprox.dll。

需要Framedyn.dll。

需要Krnlprov.dll。

需要Ncprov.dll。

需要Wbemcore.dll。

需要Wbemess.dll。

需要Wmipiprt.dll。