Returns the identifier of the hierarchy item, given its canonical name.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
- Type: System.String
[in] Pointer to the canonical name of the hierarchy item.
- Type: System.UInt32
[out] Pointer to the item identifier for the hierarchy item. For a list of pitemid values, see VSITEMID.
Use this method to determine an item identifier (item ID), given the canonical name for an item. The canonical name is a unique name used to distinguish a particular item in the hierarchy from every other item in the hierarchy. Use the GetCanonicalName method to determine the canonical name given an item ID.
Canonical names do not change between sessions of the environment, but item identifiers do. Use this method to manage workspace persistence, such as remembering window positions.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.