大网数据广告活动
域与目录服务

Accessing Property Cache with IADsProperty Interfaces

· 52CE 我爱测

The IADsProperty interfaces consist of IADsPropertyList, IADsPropertyEntry, and IADsPropertyValue.

The IADsProperty interfaces consist of IADsPropertyList, IADsPropertyEntry, and IADsPropertyValue. These interfaces provide methods to directly access and manipulate the properties of an object cache. A property is known as a property entry and corresponds to an attribute defined in the schema. A property entry can have one, or many, property values. A set of property entries are organized as a property list.

The IADsPropertyList interface manages the property list of an ADSI object. The IADsPropertyEntry interface performs this operation for a property entry. Similarly, the IADsPropertyValue interface represents one, or more, property values. Together, they provide a mechanism for users to:

  • Work directly with the property cache.
  • Work with directories that do not contain schemas, such as an LDAP version 2 server.

The IADsProperty* interfaces operate strictly on the property cache and do not make any attempt to cooperate with the server to retrieve or modify the data in the persistent store. As such, these interfaces are used only to examine and manipulate properties in the client cache. Before using these interfaces, you must call the IADs::GetInfo method or the IADs::GetInfoEx method explicitly to load the object properties into the cache, if the cache has not been initialized. After calling the methods of these interfaces, you must call IADs::SetInfo to persist the changes to the underlying directory store.

For more information and a code example that can used to implement these interfaces, see Example Code for Using IADsProperty Interfaces to Access the Property Cache.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。