IEnumComReferences.Next(UInt32, COMREFERENCE[], UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索下一组 COM 引用。
public:
int Next(System::UInt32 celt, cli::array <Microsoft::VisualStudio::Shell::Interop::COMREFERENCE> ^ rgRefs, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
int Next(unsigned int celt, std::Array <Microsoft::VisualStudio::Shell::Interop::COMREFERENCE> const & rgRefs, [Runtime::InteropServices::Out] unsigned int & pceltFetched);
public int Next (uint celt, Microsoft.VisualStudio.Shell.Interop.COMREFERENCE[] rgRefs, out uint pceltFetched);
abstract member Next : uint32 * Microsoft.VisualStudio.Shell.Interop.COMREFERENCE[] * uint32 -> int
Public Function Next (celt As UInteger, rgRefs As COMREFERENCE(), ByRef pceltFetched As UInteger) As Integer
参数
- celt
- UInt32
中要返回的 COM 引用的数目,或为零,表示对所有对象的请求。
- rgRefs
- COMREFERENCE[]
弄对象的数组 COMREFERENCE 。 包含 pceltFetched 对象。
- pceltFetched
- UInt32
弄检索到的 COM 引用的实际数量。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
[C++]
HRESULT IEnumComReferences::Next(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] PCOMREFERENCE rgRefs, [out] ULONG *pceltFetched
);