Export (0) Print
Expand All

ISchemaProvider::GetEntity method

Retrieves an entity by name from the loaded schema.

Syntax


HRESULT GetEntity(
  [in]           LPCWSTR pszEntityName,
  [out, retval]  IEntity **pEntity
);

Parameters

pszEntityName [in]

Type: LPCWSTR

The name of the entity being requested.

pEntity [out, retval]

Type: IEntity**

Receives the address of a pointer to the requested entity. The calling application must release the entity by calling its IUnknown::Release method. If there is no entity with the specified name, this parameter is set to NULL.

Return value

Type: HRESULT

Returns S_OK if successful, S_FALSE if there is no entity with the specified name, or an error value otherwise.

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