共用方式為


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 不是有效的堆積索引。

適用於