IADsPropertyEntry

The IADsPropertyEntry interface is used to manage a property entry in the property cache. A property entry has the name of the corresponding directory property and holds a value (or values) of the same type.

Multiple property entries form a property list. To access a property entry in a list, call the IADsPropertyList::Item or IADsPropertyList::GetPropertyItem method.

Before calling the methods of this interface, you need to explicitly call IADs::GetInfo or IADs::GetInfoEx to load the assigned property values of the object into the cache. After calling the methods of this interface, call IADs::SetInfo to save the changes to the directory.

Inheritance: IDispatch

Methods

  • Method

  • Description

  • Clear

  • Clears all properties of the property entry.

Properties

  • Property

  • Description

  • ADsType

  • Gets or sets the ADS data type of the property entry.

  • ControlCode

  • Gets or sets a value indicating which operation to perform on the property.

  • Name

  • Gets or sets the name of the property entry.

  • Values

  • Gets or sets an object array. Each element in this array represents a property value.

Details

Clear

Clears all properties of the property entry.

void Clear()

Remarks

The value of ADsType becomes ADSTYPE_INVALID and the value of ControlCode becomes ADS_PROPERTY_NONE. The Values and the Name properties are cleared.


ADsType

Gets or sets the ADS data type of the property entry.


ControlCode

Gets or sets a value indicating which operation to perform on the property.


Name

Gets or sets the name of the property entry. This name should correspond to the property name defined in the directory schema.

  • Type:
  • string
  • Access:
  • Read/Write

Values

Gets or sets an object[]. Each element in this array represents a property value. Such property values are represented by objects implementing the IADsPropertyValue and IADsPropertyValue2 interfaces.

  • Type:
  • Object
  • Access:
  • Read/Write

Requirements

Minimum required version: 2009.1

See also