IAppxBundleWriter::Close method (appxpackaging.h)

Finalizes the bundle package by writing footprint files at the end of the package, and closes the writer’s output stream.

Syntax

HRESULT Close();

Return value

Type: HRESULT

If the method succeeds, it returns S_OK. Otherwise, it returns an error code that includes, but is not limited to, those in the following table.

Return code Description
E_NOT_VALID_STATE
The writer is closed.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxBundleWriter