ITcRemoteManager::SetComponentVersion
Sets the version of a specified TwinCAT component to be loaded. Currently, only the "Base" component (or an empty component name) is implemented. All other component names return E_NOTIMPL. For the base component, the version string is parsed and, if valid, the requested version is loaded permanently. An empty or syntactically invalid string falls back to the default version.
Signature
HRESULT SetComponentVersion([in] BSTR bstrComponent, [in] BSTR bstrVersion);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
bstrComponent |
BSTR |
[in] Component name. Empty or |
|
bstrVersion |
BSTR |
[in] Version to be loaded. Invalid strings result in the default version. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_NOT_VALID_STATE: No component host is registered. -
E_NOTIMPL:bstrComponentis not"Base", nor is it empty.
See also
- GetComponentVersion
- GetComponentVersions