ISharedProperty::put_Value method (comsvcs.h)

Sets the value of a shared property.

Syntax

HRESULT put_Value(
  [in] VARIANT val
);

Parameters

[in] val

The new value that is to be set for this shared property.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
S_OK
The method completed successfully.
DISP_E_ARRAYISLOCKED
The argument passed in the parameter contains an array that is locked.
DISP_E_BADVARTYPE
The argument passed in the parameter is not a valid Variant type.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ISharedProperty

SharedProperty