IVsPreviewChangesList.GetListChanges(UInt32, VSTREELISTITEMCHANGE[]) 方法

定义

返回对预览列表中的项所做的更改的列表。

public:
 int GetListChanges([Runtime::InteropServices::Out] System::UInt32 % pcChanges, cli::array <Microsoft::VisualStudio::Shell::Interop::VSTREELISTITEMCHANGE> ^ prgListChanges);
int GetListChanges([Runtime::InteropServices::Out] unsigned int & pcChanges, std::Array <Microsoft::VisualStudio::Shell::Interop::VSTREELISTITEMCHANGE> const & prgListChanges);
public int GetListChanges (out uint pcChanges, Microsoft.VisualStudio.Shell.Interop.VSTREELISTITEMCHANGE[] prgListChanges);
abstract member GetListChanges : uint32 * Microsoft.VisualStudio.Shell.Interop.VSTREELISTITEMCHANGE[] -> int
Public Function GetListChanges (ByRef pcChanges As UInteger, prgListChanges As VSTREELISTITEMCHANGE()) As Integer

参数

pcChanges
UInt32

[in,out]如果 prgListChanges 参数为 null 值,则此参数将返回列表中的更改数。 如果不是 prgListChanges null 值,则此参数指定要返回的更改数。

prgListChanges
VSTREELISTITEMCHANGE[]

[in,out] VSTREELISTITEMCHANGE 描述预览列表中每个项的更改的结构的数组。 此参数可以为 null 值,在这种情况下,参数中将返回可用的更改数 pcChanges

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

HRESULT IVsPreviewChangesList::GetListChanges(  
   [in,out]                  ULONG                *pcChanges,   
   [in, size_is(*pcChanges)] VSTREELISTITEMCHANGE *prgListChanges  
);  

适用于