MetadataTokens.GetHeapOffset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetHeapOffset(Handle) |
Gets the offset of metadata heap data that corresponds to the specified |
| GetHeapOffset(MetadataReader, Handle) |
Gets the offset of metadata heap data that corresponds to the specified |
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
- reader
- MetadataReader
- 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.