ITcPlcLibraryManager::UninstallLibrary
Uninstalls a library from a registered repository.
Signature
HRESULT UninstallLibrary([in] BSTR bstrRepositoryName, [in] BSTR bstrLibraryName, [in, defaultvalue(L"")] BSTR bstrVersion, [in, defaultvalue(L"")] BSTR bstrDistributor);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrRepositoryName |
BSTR |
[in] Name of the repository. |
|
bstrLibraryName |
BSTR |
[in] Name of the library. |
|
bstrVersion |
BSTR |
[in, defaultvalue("")] Version. |
|
bstrDistributor |
BSTR |
[in, defaultvalue("")] Distributor. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
DanglingAdapterException: Adapter not connected. -
ArgumentException: The library name does not correspond to a valid library. -
SysManAutomationException(…, TSM_E_ITEMNOTFOUND): Repository or library not found.