共用方式為


IVsPreviewChangesList.LocateExpandedList(IVsLiteTreeList, UInt32) Method

Definition

Given a child list, locate its parent item in the preview list.

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] An IVsLiteTreeList object that contains the child list.

iIndex
UInt32

[out] Returns the index of the item that is the parent of the child list.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

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

Applies to