MetadataReaderProvider.FromMetadataImage Método
Definição
Sobrecargas
| FromMetadataImage(ImmutableArray<Byte>) |
Cria um provedor ao longo de uma matriz de bytes.Creates a provider over a byte array. |
| FromMetadataImage(Byte*, Int32) |
Cria um provedor de metadados sobre uma imagem armazenada na memória.Creates a metadata provider over an image stored in memory. |
FromMetadataImage(ImmutableArray<Byte>)
Cria um provedor ao longo de uma matriz de bytes.Creates a provider over a byte array.
public:
static System::Reflection::Metadata::MetadataReaderProvider ^ FromMetadataImage(System::Collections::Immutable::ImmutableArray<System::Byte> image);
public static System.Reflection.Metadata.MetadataReaderProvider FromMetadataImage (System.Collections.Immutable.ImmutableArray<byte> image);
static member FromMetadataImage : System.Collections.Immutable.ImmutableArray<byte> -> System.Reflection.Metadata.MetadataReaderProvider
Public Shared Function FromMetadataImage (image As ImmutableArray(Of Byte)) As MetadataReaderProvider
Parâmetros
- image
- ImmutableArray<Byte>
Imagem de metadados.Metadata image.
Retornos
O novo provedor.The new provider.
Exceções
image é null.image is null.
Comentários
O conteúdo da imagem não é lido durante a construção do MetadataReaderProvider .The content of the image is not read during the construction of the MetadataReaderProvider.
Aplica-se a
FromMetadataImage(Byte*, Int32)
Cria um provedor de metadados sobre uma imagem armazenada na memória.Creates a metadata provider over an image stored in memory.
public:
static System::Reflection::Metadata::MetadataReaderProvider ^ FromMetadataImage(System::Byte* start, int size);
public static System.Reflection.Metadata.MetadataReaderProvider FromMetadataImage (byte* start, int size);
static member FromMetadataImage : nativeptr<byte> * int -> System.Reflection.Metadata.MetadataReaderProvider
Parâmetros
- start
- Byte*
Ponteiro para o início do blob de metadados.Pointer to the start of the metadata blob.
- size
- Int32
O tamanho do blob de metadados.The size of the metadata blob.
Retornos
O novo provedor de metadados.The new metadata provider.
Exceções
size é negativo.size is negative.
Comentários
A memória pertence ao chamador e não é liberada na alienação do MetadataReaderProvider .The memory is owned by the caller and is not released on disposal of the MetadataReaderProvider.
O chamador é responsável por manter a memória ativa e sem modificações durante o tempo de vida do MetadataReaderProvider .The caller is responsible for keeping the memory alive and unmodified throughout the lifetime of the MetadataReaderProvider.
O conteúdo do BLOB não é lido durante a construção do MetadataReaderProvider .The content of the blob is not read during the construction of the MetadataReaderProvider.