ModuleMetadata.CreateFromImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateFromImage(IEnumerable<Byte>) |
Create metadata module from a sequence of bytes. |
CreateFromImage(ImmutableArray<Byte>) |
Create metadata module from a byte array. |
CreateFromImage(IntPtr, Int32) |
Create metadata module from a raw memory pointer to a PE image or an object file. |
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
Create metadata module from a sequence of bytes.
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
Parameters
- peImage
- IEnumerable<Byte>
The portable executable image beginning with the DOS header ("MZ").
Returns
Exceptions
peImage
is null.
Applies to
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
Create metadata module from a byte array.
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
Parameters
- peImage
- ImmutableArray<Byte>
Portable executable image beginning with the DOS header ("MZ").
Returns
Exceptions
peImage
is null.
Applies to
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
Create metadata module from a raw memory pointer to a PE image or an object file.
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
Parameters
- peImage
-
IntPtr
nint
nativeint
Pointer to the DOS header ("MZ") of a portable executable image.
- size
- Int32
The size of the image pointed to by peImage
.
Returns
Exceptions
peImage
is null.
size
is not positive.