MetadataTokens.GetRowNumber Method

Definition

Overloads

GetRowNumber(EntityHandle)

Gets the row number of a metadata table entry that corresponds to the specified handle.

GetRowNumber(MetadataReader, EntityHandle)

Gets the row number of a metadata table entry that corresponds to the specified handle in the context of reader.

GetRowNumber(EntityHandle)

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

Gets the row number of a metadata table entry that corresponds to the specified handle.

C#
public static int GetRowNumber(System.Reflection.Metadata.EntityHandle handle);

Parameters

handle
EntityHandle

Returns

One based row number, or -1 if handle can only be interpreted in a context of a specific MetadataReader. See GetRowNumber(MetadataReader, EntityHandle).

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

GetRowNumber(MetadataReader, EntityHandle)

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

Gets the row number of a metadata table entry that corresponds to the specified handle in the context of reader.

C#
public static int GetRowNumber(this System.Reflection.Metadata.MetadataReader reader, System.Reflection.Metadata.EntityHandle handle);

Parameters

handle
EntityHandle

Returns

One based row number.

Exceptions

The handle is not a valid metadata table handle.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0