ModuleMetadata.CreateFromImage 方法

定义

重载

CreateFromImage(IEnumerable<Byte>)

从字节序列创建元数据模块。

CreateFromImage(ImmutableArray<Byte>)

从字节数组创建元数据模块。

CreateFromImage(IntPtr, Int32)

从原始内存指针创建元数据模块,指向 PE 映像或对象文件。

CreateFromImage(IEnumerable<Byte>)

Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs

从字节序列创建元数据模块。

public:
 static Microsoft::CodeAnalysis::ModuleMetadata ^ CreateFromImage(System::Collections::Generic::IEnumerable<System::Byte> ^ peImage);
public static Microsoft.CodeAnalysis.ModuleMetadata CreateFromImage (System.Collections.Generic.IEnumerable<byte> peImage);
static member CreateFromImage : seq<byte> -> Microsoft.CodeAnalysis.ModuleMetadata
Public Shared Function CreateFromImage (peImage As IEnumerable(Of Byte)) As ModuleMetadata

参数

peImage
IEnumerable<Byte>

以 DOS 标头开头的可移植可执行映像 (“MZ”) 。

返回

例外

peImage 为 null。

适用于

CreateFromImage(ImmutableArray<Byte>)

Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs

从字节数组创建元数据模块。

public:
 static Microsoft::CodeAnalysis::ModuleMetadata ^ CreateFromImage(System::Collections::Immutable::ImmutableArray<System::Byte> peImage);
public static Microsoft.CodeAnalysis.ModuleMetadata CreateFromImage (System.Collections.Immutable.ImmutableArray<byte> peImage);
static member CreateFromImage : System.Collections.Immutable.ImmutableArray<byte> -> Microsoft.CodeAnalysis.ModuleMetadata
Public Shared Function CreateFromImage (peImage As ImmutableArray(Of Byte)) As ModuleMetadata

参数

peImage
ImmutableArray<Byte>

从 DOS 标头 (“MZ”) 开始的可移植可执行映像。

返回

例外

peImage 为 null。

适用于

CreateFromImage(IntPtr, Int32)

Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs
Source:
ModuleMetadata.cs

从原始内存指针创建元数据模块,指向 PE 映像或对象文件。

public:
 static Microsoft::CodeAnalysis::ModuleMetadata ^ CreateFromImage(IntPtr peImage, int size);
public static Microsoft.CodeAnalysis.ModuleMetadata CreateFromImage (IntPtr peImage, int size);
public static Microsoft.CodeAnalysis.ModuleMetadata CreateFromImage (nint peImage, int size);
static member CreateFromImage : nativeint * int -> Microsoft.CodeAnalysis.ModuleMetadata
Public Shared Function CreateFromImage (peImage As IntPtr, size As Integer) As ModuleMetadata

参数

peImage
IntPtr

nint

nativeint

指向可移植可执行映像的 DOS 标头 (“MZ”) 的指针。

size
Int32

指向 peImage的图像的大小。

返回

例外

peImage 为 null。

size 不是正数值。

适用于