大网数据广告活动
网络与域名解析

Objects and Properties

· 52CE 我爱测

The characteristics of an object in SDO are determined by the object's properties, and the values associated with those properties.

The characteristics of an object in SDO are determined by the object's properties, and the values associated with those properties. Unlike some other object models, SDO objects themselves do not have methods. However, SDO objects do expose COM interfaces that provide methods.

Objects in SDO expose the ISdo interface that provides methods for manipulating the objects properties. To access the object's properties, obtain an ISdo interface for the object, and use the GetProperty and PutProperty interface methods to retrieve and set values for the properties. The topic Retrieving a User SDO contains sample code that demonstrates obtaining the ISdo interface for a User object.

After making changes to the properties of an object, use the ISdo::Apply method to write the changes to persistent storage for the object. You can cancel changes made to an object's properties before you call ISdo::Apply by calling the ISdo::Restore method. This method restores the values of an object's properties from persistent storage.

The following table shows the enumeration types that enumerate the properties of some of the objects in SDO.

Object Enumeration type
All SDO objects IASCOMMONPROPERTIES
User Object USERPROPERTIES
Service Object (Network Policy Server) IASPROPERTIES
Microsoft RADIUS Protocol Object RADIUSPROPERTIES

Note:
Internet Authentication Service (IAS) was renamed Network Policy Server (NPS) starting with Windows Server 2008.

Collections

Objects are often grouped into collections. The SDO API provides functionality, through the ISdo Collection interface, to enumerate the objects in a collection and to add and delete objects from a collection.

Access to a collection is obtained by retrieving a collection property on the object that contains the collection. For more information, see the section Object Model Hierarchy.

The data type for all properties that correspond to collections is VT_DISPATCH.

Related topics

SDO Object Model Hierarchy

SDO Supported Attributes

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)

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

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