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

RemoveNamespaceAt Method

Previous pageReturn to chapter overviewNext page

描述

 

IWbemPath.RemoveNamespaceAt方法删除特定索引处的命名空间。最左侧的命名空间的索引值为0(零),而右侧的命名空间具有逐渐更高的索引值。

 

C++ 语法

 

HRESULT RemoveNamespaceAt(

[in]  ULONG uIndex

);

 

PowerBASIC 语法

 

METHOD RemoveNamespaceAt ( _

BYVAL uIndex AS DWORD _

) AS LONG

 

参数

 

uIndex

 

要删除的名称空间的基于零的索引值。

 

返回值

 

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

 

退货代码

描述

S_OK

方法成功执行

WBEM_E_INVALID_PARAMETER

索引超出范围。

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。