ITsSbResourcePluginStore::SetEnvironmentPropertyWithVersionCheck method (sbtsv.h)

Sets a property of an environment.

Syntax

HRESULT SetEnvironmentPropertyWithVersionCheck(
  [in] ITsSbEnvironment *pEnvironment,
  [in] BSTR             PropertyName,
  [in] VARIANT          *pProperty
);

Parameters

[in] pEnvironment

A pointer to the environment.

[in] PropertyName

The name of the property to set.

[in] pProperty

A pointer to the value to set.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

When a target or environment object is updated, the version number in the database is automatically updated. This method verifies that the version number of the object it has modified matches the internal version number in the database before attempting to save the updated object to the database.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2016
Target Platform Windows
Header sbtsv.h

See also

ITsSbEnvironment

ITsSbResourcePluginStore

SetEnvironmentProperty