IEnumSystemAssemblies.Next(UInt32, String[], UInt32) 方法

定義

抓取下一個系統元件。Retrieves the next system assembly.

public:
 int Next(System::UInt32 celt, cli::array <System::String ^> ^ rgAssemblies, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
int Next(unsigned int celt, std::Array <std::wstring const &> const & rgAssemblies, [Runtime::InteropServices::Out] unsigned int & pceltFetched);
public int Next (uint celt, string[] rgAssemblies, out uint pceltFetched);
abstract member Next : uint32 * string[] * uint32 -> int
Public Function Next (celt As UInteger, rgAssemblies As String(), ByRef pceltFetched As UInteger) As Integer

參數

celt
UInt32

要傳回的元件數目。The number of assemblies to return.

rgAssemblies
String[]

傳回之元件的參考。A reference to the returned assemblies.

pceltFetched
UInt32

傳回的系統元件數目。Number of system assemblies returned.

傳回

Int32

如果方法成功,它會傳回 S_OKIf the method succeeds, it returns S_OK. 如果方法失敗,則會傳回錯誤碼。If it fails, it returns an error code.

備註

從 compsvcspkg90 .idl:From compsvcspkg90.idl:

HRESULT Next(  
    [in] ULONG celt,  
    [out, size_is(celt), length_is(*pceltFetched)] BSTR * rgAssemblies,  
    [out] ULONG *pceltFetched  
);  

適用於