共用方式為


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

從位元組序列建立中繼資料模組。

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

從位元組陣列建立中繼資料模組。

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

從原始記憶體指標建立中繼資料模組,指向 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

可攜式可執行檔映射 (「MZ」) DOS 標頭的指標。

size
Int32

peImage 指向之影像的大小。

傳回

例外狀況

peImage 為 null。

size 不是正數。

適用於