IADsPropertyValue2::PutObjectProperty method (iads.h)

The IADsPropertyValue2::PutObjectProperty method sets an attribute value.

Syntax

HRESULT PutObjectProperty(
  [in] long    lnADsType,
  [in] VARIANT vProp
);

Parameters

[in] lnADsType

Contains one of the ADSTYPEENUM values that specifies the data format of the value set. This value must correspond to the pvProp variant type. For more information and a list of the lnADsType values and corresponding pvProp variant types, see IADsPropertyValue2.

[in] vProp

Pointer to a VARIANT that contains the new attribute value. The variant type of this data must correspond to the value in lnADsType. For more information and a list of the lnADsType values and corresponding pvProp variant types, see IADsPropertyValue2.

Return value

Returns S_OK if successful or an error code otherwise. The following are the most common error codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

ADSI Error Codes

ADSTYPEENUM

IADsPropertyValue

IADsPropertyValue2