VSITEMSELECTION Structure

 

Contains information that uniquely identifies a selected item within a hierarchy.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public struct VSITEMSELECTION

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubfielditemid

identifier that represents the selected item. For valid itemid values, see VSITEMID.

System_CAPS_pubfieldpHier

Pointer to an IVsHierarchy interface.

The VSITEMSELECTION structure contains some of the information that makes up the selection context. The selection context is maintained by the Visual Studio environment and is associated with every window. The VSITEMSELECTION data is used to update the Solution Explorer window to reflect the currently active project and project item. The other information in the selection context includes an ISelectionContainer pointer providing access to information for the Properties window and an array of element values.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: