Bagikan melalui


MetadataReaderExtensions.GetHeapMetadataOffset Metode

Definisi

Mengembalikan offset dari awal metadata ke tumpukan yang ditentukan.

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

Parameter

heapIndex
HeapIndex

Mengembalikan

Pengecualian

readeradalah null.

heapIndex bukan indeks timbunan yang valid.

Berlaku untuk