Compartilhar via


UIHierarchyItems.Item Method

Returns a UIHierarchyItem object in a UIHierarchyItems collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function Item ( _
    index As Object _
) As UIHierarchyItem
UIHierarchyItem Item(
    Object index
)
UIHierarchyItem^ Item(
    [InAttribute] Object^ index
)
abstract Item : 
        index:Object -> UIHierarchyItem
function Item(
    index : Object
) : UIHierarchyItem

Parameters

Return Value

Type: EnvDTE.UIHierarchyItem
A UIHierarchyItem object.

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.

.NET Framework Security

See Also

Reference

UIHierarchyItems Interface

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples