Bewerken

Delen via


MetadataReaderProvider.FromPortablePdbImage Method

Definition

Overloads

FromPortablePdbImage(ImmutableArray<Byte>)

Creates a portable PDB metadata provider over a byte array.

FromPortablePdbImage(Byte*, Int32)

Creates a portable PDB metadata provider over a blob stored in memory.

FromPortablePdbImage(ImmutableArray<Byte>)

Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs

Creates a portable PDB metadata provider over a byte array.

public:
 static System::Reflection::Metadata::MetadataReaderProvider ^ FromPortablePdbImage(System::Collections::Immutable::ImmutableArray<System::Byte> image);
public static System.Reflection.Metadata.MetadataReaderProvider FromPortablePdbImage (System.Collections.Immutable.ImmutableArray<byte> image);
static member FromPortablePdbImage : System.Collections.Immutable.ImmutableArray<byte> -> System.Reflection.Metadata.MetadataReaderProvider
Public Shared Function FromPortablePdbImage (image As ImmutableArray(Of Byte)) As MetadataReaderProvider

Parameters

image
ImmutableArray<Byte>

A portable PDB image.

Returns

The new portable PDB metadata provider .

Exceptions

image is null.

Remarks

The content of the image is not read during the construction of the MetadataReaderProvider.

Applies to

FromPortablePdbImage(Byte*, Int32)

Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs
Source:
MetadataReaderProvider.cs

Creates a portable PDB metadata provider over a blob stored in memory.

public:
 static System::Reflection::Metadata::MetadataReaderProvider ^ FromPortablePdbImage(System::Byte* start, int size);
public static System.Reflection.Metadata.MetadataReaderProvider FromPortablePdbImage (byte* start, int size);
static member FromPortablePdbImage : nativeptr<byte> * int -> System.Reflection.Metadata.MetadataReaderProvider

Parameters

start
Byte*

Pointer to the start of the portable PDB blob.

size
Int32

The size of the portable PDB blob.

Returns

The new portable PDB metadata provider.

Exceptions

size is negative.

Remarks

The memory is owned by the caller and not released on disposal of the MetadataReaderProvider.

The caller is responsible for keeping the memory alive and unmodified throughout the lifetime of the MetadataReaderProvider.

The content of the blob is not read during the construction of the MetadataReaderProvider.

Applies to