ITcPlcLibraryManager::AddPlaceholder

Adds a placeholder to the PLC project. A placeholder can either be added by its attributes (Placeholder name, library name, library version, library distributor) or by its name if the placeholder already exists.

HRESULT AddPlaceholder(BSTR bstrPlaceholderName, BSTR bstrDefaultLibName, BSTR bstrDefaultVersion, BSTR bstrDefaultDistributor);

Parameters

bstrPlaceholderName

[in] Placeholder name.

bstrDefaultLibName

[in] Default library name which the placeholder points to.

bstrVersion

[in, optional, defaultvalue("")] Default library version.

bstrCompany

[in, optional, defaultvalue("")] Company which created the library.

Return Values

S_OK

Placeholder successfully added..