ITcPlcLibraryManager::AddPlaceholder
Creates a placeholder. If bstrDefaultLibName is empty, the default library is determined based on the device placeholders.
Signature
HRESULT AddPlaceholder([in] BSTR bstrPlaceholderName, [in, defaultvalue(L"")] BSTR bstrDefaultLibName, [in, defaultvalue(L"")] BSTR bstrDefaultVersion, [in, defaultvalue(L"")] BSTR bstrDefaultDistributor);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrPlaceholderName |
BSTR |
[in] Name of the placeholder. |
|
bstrDefaultLibName |
BSTR |
[in, defaultvalue("")] Default library (empty = from device placeholders). |
|
bstrDefaultVersion |
BSTR |
[in, defaultvalue("")] Default version. |
|
bstrDefaultDistributor |
BSTR |
[in, defaultvalue("")] Default distributor. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
DanglingAdapterException: Adapter not connected. -
ArgumentException: Name is empty. -
AutomationException(…, E_INVALIDARG): No device placeholder found withoutlibName.