ITcLibraryManager::GetLibraryIecDeclaration
Reads a library's IEC declaration using bstrLibraryId. If bTryToLoad is set to VARIANT_TRUE, the missing library description can be loaded later as needed.
Signature
HRESULT GetLibraryIecDeclaration(BSTR bstrLibraryId, VARIANT_BOOL bTryToLoad, BSTR* pIecDeclaration);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrLibraryId |
BSTR |
[in] Unique library ID of the library to be resolved. |
|
bTryToLoad |
VARIANT_BOOL |
[in, defaultvalue(-1)] Controls whether loading is attempted during lookup ( |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pIecDeclaration |
BSTR* |
[out, retval] IEC declaration of the library as a string. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pIecDeclarationisNULL. -
ADS_E_NOTFOUND: The library forbstrLibraryIdwas not found. -
E_NOINTERFACE: No object is available with theITcLibraryManager.