MetadataReaderExtensions.GetHeapMetadataOffset 方法

定义

返回从元数据开始处到指定堆的偏移量。

public:
[System::Runtime::CompilerServices::Extension]
 static int GetHeapMetadataOffset(System::Reflection::Metadata::MetadataReader ^ reader, System::Reflection::Metadata::Ecma335::HeapIndex heapIndex);
public static int GetHeapMetadataOffset (this System.Reflection.Metadata.MetadataReader reader, System.Reflection.Metadata.Ecma335.HeapIndex heapIndex);
static member GetHeapMetadataOffset : System.Reflection.Metadata.MetadataReader * System.Reflection.Metadata.Ecma335.HeapIndex -> int
<Extension()>
Public Function GetHeapMetadataOffset (reader As MetadataReader, heapIndex As HeapIndex) As Integer

参数

heapIndex
HeapIndex

返回

例外

readernull

heapIndex 不是有效的堆索引。

适用于