UIHierarchyItems.Item(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a UIHierarchyItem object in a UIHierarchyItems collection.
public:
EnvDTE::UIHierarchyItem ^ Item(System::Object ^ index);
public:
EnvDTE::UIHierarchyItem ^ Item(Platform::Object ^ index);
EnvDTE::UIHierarchyItem Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.UIHierarchyItem Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.UIHierarchyItem
Public Function Item (index As Object) As UIHierarchyItem
Parameters
- index
- Object
Required. The index of the UIHierarchyItem object to return.
Returns
A UIHierarchyItem object.
- Attributes
Remarks
The value passed to Index
is an integer that is either an index to a UIHierarchyItem object in its UIHierarchyItems collection, such as OutputWindowPanes.Item(4)
, or the name of a UIHierarchyItem object in the collection.
The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.