Using sets with members of a different type

Property sets and property identifier sets both work with each other's members. This means that you can construct a property set using property identifier instances, and vice versa.

Using properties with a property identifier set

You can use properties with property identifiers to:

    You can construct a property identifier set using a TPropertySet instance. This constructs a TPropertyIDSet instance using the contents of the property set instance.
    When you use the = operator to assign a property set to a property identifier set, this assigns the identifiers contained in the property set to the TPropertyIDSet instance.
    You can use TPropertyIDSet::Add to add a property to a property identifier set. As with the assign operator, this action adds the identifier contained within the property to the property identifier set.

Using property identifiers with a property set

Using property identifiers with property sets has different results than using properties with property identifier sets, though the ways in which you use them are the same.

Whenever you assign the values of a TPropertyIDSet to a TPropertySet (using the assign operator or a constructor), the property set that results does not contain valid values. The same is true when you add a TPropertyID instance to a TPropertySet--that member does not contain a valid value. However, the property container constructed by adding a TPropertyID to a TPropertySet is valid, and you can later fill it with a valid value with an MPropertyStore read function.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker