ISettingsEngine::GetNamespace method

Opens an existing namespace as specified by the ISettingsIdentity parameter.

Syntax


HRESULT GetNamespace(
  [in]   ISettingsIdentity *SettingsID,
  [in]   WcmNamespaceAccess Access,
  [in]   void *Reserved,
  [out]  ISettingsNamespace **NamespaceItem
);

Parameters

SettingsID [in]

An ISettingsIdentity object that specifies an existing namespace to get.

Access [in]

A WcmNamespaceAccess value that specifies the type of access, whether it is read-only or read and write access.

Reserved [in]

Reserved. Must be NULL.

NamespaceItem [out]

A pointer to an ISettingsNamespace object that is the result of the get operation.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Indicates success.

WCM_E_USERNOTFOUND

Indicates that the store is not currently loaded.

WCM_E_NAMESPACENOTFOUND

Indicates that the provided identity does not match a namespace registered in the store.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WcmConfig.h

IDL

WcmConfig.idl

DLL

SMIEngine.dll

See also

ISettingsEngine

 

 

Community Additions

ADD
Show:
© 2015 Microsoft