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 "Base" is addressed to the System Manager.

bstrVersion

BSTR

[in] Version to be loaded. Invalid strings result in the default version.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also