IWbemPath::RemoveNamespaceAt method

The IWbemPath::RemoveNamespaceAt method removes a namespace at a particular index. The leftmost namespace has an index value of 0 (zero), while namespaces to the right have progressively higher index values.

Syntax


HRESULT RemoveNamespaceAt(
  [in]  ULONG uIndex
);

Parameters

uIndex [in]

Zero-based index value of the namespace to be removed.

Return value

This method returns an HRESULT with one of the following values.

Return codeDescription
S_OK

Method executed successfully.

WBEM_E_INVALID_PARAMETER

Index is out of range.

WBEM_E_OUT_OF_MEMORY

Out of memory.

 

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath
IWbemPathKeyList

 

 

Show:
© 2014 Microsoft. All rights reserved.