Export (0) Print
Expand All

IMetaData::GetData method

Retrieves one key/value pair from the metadata of an IEntity, IRelationship, or ISchemaProvider object.

Syntax


HRESULT GetData(
  [out]  LPCWSTR *ppszKey,
  [out]  LPWSTR *ppszValue
);

Parameters

ppszKey [out]

Type: LPCWSTR*

Receives the key of the metadata pair as a Unicode string. The calling application must free the returned string by calling CoTaskMemFree.

ppszValue [out]

Type: LPWSTR*

Receives the value of the metadata pair as a Unicode string. The calling application must free the returned string by calling CoTaskMemFree.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Structuredquery.h

IDL

Structuredquery.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft