ITcPlcLibraryManager::InsertRepository

Adds a new library repository at the specified position. The position represents the index at which the repositories is located in the repository list in TwinCAT 3. In addition to the index, a repository is identified via its name and path to a directory in the file system.

HRESULT InsertRepository(BSTR bstrName, BSTR rootFolder, int iIndex);

Parameters

bstrName

[in] Repository name.

rootFolder

[in] Path to repository (file system).

iIndex

[in] Indicates on which position the repository is located in the list of repositories.

Return Values

S_OK

Repository successfully inserted