MetadataStreamOptions 枚举

定义

public enum class MetadataStreamOptions
[System.Flags]
public enum MetadataStreamOptions
type MetadataStreamOptions = 
Public Enum MetadataStreamOptions
继承
MetadataStreamOptions
属性

字段

Default 0

默认情况下,当释放 MetadataReaderProvider 并且延迟读取 PE 映像的部分时,系统会将流释放。By default, the stream is disposed when MetadataReaderProvider is disposed and sections of the PE image are read lazily.

LeaveOpen 1

在释放 MetadataReaderProvider 时将流保持为开放状态。Keeps the stream open when the MetadataReaderProvider is disposed.

PrefetchMetadata 2

立即将 PDB 元数据读入内存。Reads PDB metadata into memory right away.

构造 MetadataReaderProvider 之后,基础文件可能会关闭,甚至被删除。The underlying file may be closed and even deleted after the MetadataReaderProvider is constructed. 除非指定了 LeaveOpen,否则 MetadataReaderProvider 会在构造函数返回时自动关闭流。MetadataReaderProvider closes the stream automatically by the time the constructor returns unless LeaveOpen is specified.

适用于