Breyta

Deila með


MetadataTokens.GetHeapOffset Method

Definition

Overloads

GetHeapOffset(BlobHandle)

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

GetHeapOffset(GuidHandle)

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

GetHeapOffset(Handle)

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

GetHeapOffset(StringHandle)

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

GetHeapOffset(UserStringHandle)

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(BlobHandle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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

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

Parameters

handle
BlobHandle

Returns

Zero based offset, or -1 if handle can only be interpreted in a context of a specific MetadataReader or MetadataBuilder.

Applies to

GetHeapOffset(GuidHandle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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

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

Parameters

handle
GuidHandle

Returns

1-based index into the #Guid heap. Unlike other heaps, which are essentially byte arrays, the #Guid heap is an array of 16-byte GUIDs.

Applies to

GetHeapOffset(Handle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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(StringHandle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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

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

Parameters

handle
StringHandle

Returns

Zero-based offset, or -1 if handle can only be interpreted in a context of a specific MetadataReader or MetadataBuilder.

Applies to

GetHeapOffset(UserStringHandle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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

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

Parameters

Returns

Zero-based offset.

Applies to

GetHeapOffset(MetadataReader, Handle)

Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs
Source:
MetadataTokens.cs

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