GetEntry
TheGetEntrymethod searches for an entry with the specified key and, if it exists, gets the value associated with that key.
ODBoolean GetEntry (in ODISOStr key, out ODByteArray value);
- key
- The key to search for in this value name space.
- value
- A byte array structure to contain the value corresponding to the specified key, if the entry is found.
- return value
kODTrueif the entry was found, otherwisekODFalse.DISCUSSION
If the specified key is found, this method copies the entry's associated value into thevalueparameter. If the specified key is not found in this name space, this method searches the parent name space. Searches proceed from each value name space to its parent until one of the following happens: the entry is found, there is no parent name space to search, or the parent name space is an object name space instead of a value name space.If the key is found, the
_bufferfield of thevalueoutput parameter is set to point to a memory block containing the a copy of the value associated with the key. If the key is not found after searching this value name space and its ancestors, the_bufferfield of thevalueparameter is set tokODNULL.Your part must delete the byte array and its buffer when they are no longer needed.
SEE ALSO
TheODByteArraytype (page 877).
TheODISOStrtype (page 875).
TheODNameSpace::Existsmethod (page 429).
TheODValueNameSpace::Registermethod (page 822).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help