File

Applies to Windows and Windows Phone

Represents a file contained in the package.

Element hierarchy

<BlockMap>
<File>

Syntax

<File Name    = The name of the file must be non-empty and no more than 260 (MAX_PATH) characters supported by the APPX package format (even though ZIP format supports up to 65535 bytes).
      Size    = nonNegativeInteger
      LfhSize = The size of the Local File Header for a file must be at least 30 bytes and no more than 64KB as required by the ZIP format. >

  <!-- Child elements -->
  Block*

</File>

Key

*   optional (zero or more)

Attributes and Elements

Attributes

AttributeDescriptionData typeRequiredDefault value
LfhSize

Size, in bytes, of the file's Local File Header (LFH) structure in the package. For more info about file headers, see ZIP file format specification.

The size of the Local File Header for a file must be at least 30 bytes and no more than 64KB as required by the ZIP format.Yes
Name

Root path and file name.

The name of the file must be non-empty and no more than 260 (MAX_PATH) characters supported by the APPX package format (even though ZIP format supports up to 65535 bytes).Yes
Size

Size, in bytes, of the file's uncompressed data.

nonNegativeIntegerYes

 

Child Elements

Child ElementDescription
Block

Represents a block of binary data contained in a file.

 

Parent Elements

Parent ElementDescription
BlockMap

Defines the root element of the app package block map. The BlockMap element specifies the algorithm that is used to compute cryptographic hashes and contains a sequence of File child elements that are associated with each file that is stored in the package.

 

Remarks

The order of the Block child elements must correspond to the order of the data blocks as they appear in the file being represented.

Requirements

Namespace

http://schemas.microsoft.com/appx/2010/blockmap

 

 

Show:
© 2014 Microsoft