GetStrongStorageUnitRef
TheGetStrongStorageUnitRefmethod creates a strong persistent reference to the specified storage unit.
void GetStrongStorageUnitRef ( in ODStorageUnitID embeddedSUID, out ODStorageUnitRef strongRef);
embeddedSUID- The storage-unit ID of the storage unit whose persistent reference is desired.
strongRef- The persistent reference to the storage unit specified by the
embeddedSUIDparameter.DISCUSSION
After this method executes successfully, call theSetValuemethod to store the resulting persistent reference, returned in thestrongRefoutput parameter, into the focused value.
- IMPORTANT
- The scope of a persistent reference is limited to the value in which it was created. If you store the persistent reference in a different value, it will almost certainly not refer to the correct storage unit.
![]()
EXCEPTIONS
If the storage-unit cursor for this storage-unit view does not represent a legal focus context for the storage unit that created this storage-unit view, this method throws exceptions raised by the
kODErrIllegalNullStorageUnitInput- The
embeddedSUIDparameter is null.kODErrUnfocusedStorageUnit- The focus context of this storage-unit view is not a value.
FocusWithCursormethod of that storage unit.SEE ALSO
TheODStorageUnitIDtype (page 903).
TheODStorageUnitReftype (page 903).
TheODStorageUnitView::GetWeakStorageUnitRefmethod (page 747).
TheODStorageUnitView::IsStrongStorageUnitRefmethod (page 751).
TheODStorageUnitView::SetValuemethod (page 760).
For more information on persistent references, see the chapter on storage in theOpenDoc Programmer's Guide for the MacOS .
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help