AddProperty
TheAddPropertymethod adds a property with the specified name to this storage unit.
ODStorageUnit AddProperty (in ODPropertyName propertyName);
propertyName- The name of the property to be added.
- return value
- A reference to this storage unit.
DISCUSSION
If the storage unit does not already contain a property with the specified name, the new property is added and this storage unit is focused on the newly added property. Otherwise, this storage unit is focused on the existing property with the specified name.EXCEPTIONS
kODErrCannotAddProperty- Cannot add the specified property to this storage unit.
kODErrIllegalNullPropertyInput- The specified property name is null.
kODErrZeroRefCount- This storage unit has a reference count of 0.
SEE ALSO
TheODPropertyNametype (page 904).
TheODStorageUnit::GetPropertymethod (page 693).
TheODStorageUnit::Removemethod (page 707).
Listing 2-41 on page 100 in OpenDoc Cookbook.
"Creating Properties and Values" on page 274 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help