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)
Syntax
'Declaration
Public Structure VSITEMSELECTION
public struct VSITEMSELECTION
public value class VSITEMSELECTION
[<Sealed>]
type VSITEMSELECTION = struct end
JScript supports the use of structures, but not the declaration of new ones.
The VSITEMSELECTION type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Fields
Name | Description | |
---|---|---|
itemid | identifier that represents the selected item. For valid itemid values, see VSITEMID. | |
pHier | Pointer to an IVsHierarchy interface. |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.