Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
|GSI_fOmitHierPtrs||Indicates that the pHier field of VSITEMSELECTION structure should not be filled in (and therefore not AddRef()'d). This is useful in a case where a selection is within one hierarchy, as this value does not need to be filled. The pHier was already obtained through GetCurrentSelection or through OnSelectionChanged.|
Currently there is only one element of the __VSGSIFLAGS enumeration: pHier member of the VSITEMSELECTION structure should not contain an pointer; it should remain a null reference (Nothing in Visual Basic) and therefore not be added to the reference count with IUnknown::AddRef.. When set, GSI_fOmitHierPtrs indicates that the
Setting the GSI_fOmitHierPtrs flag is an optimization that is useful if a selection resides within one hierarchy. Because the IVsHierarchy pointer for the selection was already obtained throughor , it need not be retrieved again.