Rediger

Del via


PEHeader.FileAlignment Property

Definition

Gets the alignment factor (in bytes) that is used to align the raw data of sections in the image file.

public:
 property int FileAlignment { int get(); };
public int FileAlignment { get; }
member this.FileAlignment : int
Public ReadOnly Property FileAlignment As Integer

Property Value

A power of 2 between 512 and 64K, inclusive. The default is 512.

Remarks

If the SectionAlignment is less than the architecture's page size, then FileAlignment must match SectionAlignment.

Applies to