SetNamespaceAt method

IWbemPath::SetNamespaceAt method

The IWbemPath::SetNamespace method sets a namespace in a path using zero-based indexing to designate where in the path the namespace is positioned.

Syntax


HRESULT SetNamespaceAt(
  [in] ULONG   uIndex,
  [in] LPCWSTR pszName
);

Parameters

uIndex [in]

Index of where the namespace is to be put. The leftmost namespace in the path is index 0 (zero) with each namespace to the right having a progressively higher index value. The maximum permitted value is the current number of namespaces, because specifying that would add a namespace to the end as the namespaces have a zero-based index.

pszName [in]

Namespace name.

Return value

This method returns an HRESULT indicating the status of the method call.

S_OK

Method executed successfully.

WBEM_E_INVALID_PARAMETER

The pszName parameter is NULL or uIndex parameter is too large.

WBEM_E_OUT_OF_MEMORY

Out of memory.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

IWbemPath

 

 

Show:
© 2016 Microsoft