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

GetNamespaceCount Method

Previous pageReturn to chapter overviewNext page

描述

 

IWbemPath.GetNamespaceCount方法返回路径中的命名空间数。

 

C++ 语法

 

HRESULT GetNamespaceCount(

[out]  ULONG *puCount

);

 

PowerBASIC 语法

 

METHOD GetNamespaceCount ( _

BYREF puCount AS DWORD _

) AS LONG

 

参数

 

puCount

 

路径中的命名空间数。

 

返回值

 

此方法返回一个HRESULT以下值之一。

 

退货代码

描述

S_OK

方法成功执行

WBEM_E_INVALID_PARAMETER

puCount参数为NULL。

WBEM_E_OUT_OF_MEMORY

内存不足以执行该方法。

 

备注

 

Windows 2000 / NT:需要WMI SDK Update或Microsoft .NET Framework SDK。

 

Windows NT:需要Microsoft .NET Framework SDK。

 

要求

 

客户

需要Windows Vista或Windows XP。

服务器

需要Windows Server 2008或Windows Server 2003。

可再发行

需要Windows 2000和Windows NT上的WMI可重新分发组件版本1.0。在Windows NT上,它也需要Microsoft .NET Framework。

在Wmiutils.inc中声明。

DLL

需要Wmiutils.dll。