Compartir a través de


IVsObjectList.LocateExpandedList(IVsLiteTreeList, UInt32) Method

Definition

public:
 int LocateExpandedList(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ ExpandedList, [Runtime::InteropServices::Out] System::UInt32 % iIndex);
int LocateExpandedList(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList const & ExpandedList, [Runtime::InteropServices::Out] unsigned int & iIndex);
public int LocateExpandedList (Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList ExpandedList, out uint iIndex);
abstract member LocateExpandedList : Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList * uint32 -> int
Public Function LocateExpandedList (ExpandedList As IVsLiteTreeList, ByRef iIndex As UInteger) As Integer

Parameters

ExpandedList
IVsLiteTreeList

[in] Pointer to the IVsLiteTreeList interface that specifies an expanded list.

iIndex
UInt32

[out] Pointer to an integer containing the index of the specified tree list.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsObjectList::LocateExpandedList(  
   [in] IVsLiteTreeList* ExpandedList,  
   [out] ULONG *iIndex  
);  

The environment calls this method during a ReAlign command if the node's TF_NORELOCATE attribute is not set, as determined by a call to GetFlags. If the list cannot be located, ExpandedList will be discarded.

Applies to