ICorProfilerModuleEnum::Skip 方法ICorProfilerModuleEnum::Skip Method

将枚举器的游标从其当前位置前移,以便跳过指定数量的元素。Advances the enumerator's cursor from its current position so that the specified number of elements are skipped.

语法Syntax

HRESULT Skip([in] ULONG celt);  

参数Parameters

celt
中要跳过的元素数。[in] The number of elements to be skipped.

返回值Return Value

此方法返回以下特定 HRESULT 以及表示方法失败的 HRESULT 错误。This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULTHRESULT 说明Description
S_OKS_OK celt元素已被跳过。celt elements were skipped.
S_FALSES_FALSE celt跳过的元素数少于个,这表示没有更多元素。Fewer than celt elements were skipped, which indicates that there are no more elements.

注解Remarks

此枚举器的游标的新位置为(当前位置) + celtThe new position of this enumerator's cursor is (current position) + celt.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

头文件: CorProf.idl、CorProf.hHeader: CorProf.idl, CorProf.h

库: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4 之后可用Available since 4.NET Framework Versions: 自 4 之后可用Available since 4

另请参阅See also