ITcPlcLibraryManager::InsertRepository
Registers a new repository at index iIndex (determines the priority).
Signature
HRESULT InsertRepository([in] BSTR bstrName, [in] BSTR rootFolder, [in] int iIndex);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrName |
BSTR |
[in] Name of the repository. |
|
rootFolder |
BSTR |
[in] Root folder of the repository. |
|
iIndex |
int |
[in] Insertion index (priority). |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
DanglingAdapterException: Adapter not connected. -
ArgumentException: Name already exists orindex > count/index < -1. -
ErrorException(Error_CouldNotAddRepository): The insert operation returnednull.