MetadataTokens.GetHeapOffset Method

Definition

Overloads

Name Description
GetHeapOffset(Handle)

Gets the offset of metadata heap data that corresponds to the specified handle.

GetHeapOffset(MetadataReader, Handle)

Gets the offset of metadata heap data that corresponds to the specified handle in the context of reader.

GetHeapOffset(Handle)

Gets the offset of metadata heap data that corresponds to the specified handle.

public:
 static int GetHeapOffset(System::Reflection::Metadata::Handle handle);
public static int GetHeapOffset(System.Reflection.Metadata.Handle handle);
static member GetHeapOffset : System.Reflection.Metadata.Handle -> int
Public Function GetHeapOffset (handle As Handle) As Integer

Parameters

handle
Handle

Returns

An offset in the corresponding heap, or -1 if handle can only be interpreted in a context of a specific MetadataReader or MetadataBuilder.

Applies to

GetHeapOffset(MetadataReader, Handle)

Gets the offset of metadata heap data that corresponds to the specified handle in the context of reader.

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

Parameters

handle
Handle

Returns

Zero based offset, or -1 if handle isn't a metadata heap handle.

Exceptions

The operation is not supported for the specified handle.

The handle is invalid.

Applies to