Muokkaa

Jaa


Package.DeletePartCore(Uri) Method

Definition

When overridden in a derived class, deletes a part with a given URI.

protected:
 abstract void DeletePartCore(Uri ^ partUri);
protected abstract void DeletePartCore (Uri partUri);
abstract member DeletePartCore : Uri -> unit
Protected MustOverride Sub DeletePartCore (partUri As Uri)

Parameters

partUri
Uri

The Uri of the PackagePart to delete.

Remarks

By default, a ZipPackage derived class implementation of the abstract Package class is provided and used. In the default operation, DeletePart internally calls DeletePartCore of the ZipPackage class to perform the actual delete operation based on the physical format implemented in the derived class.

For more information about the package model and package parts, see Chapter 1 of the Open Packaging Conventions (OPC) specification available for download at https://www.ecma-international.org/publications-and-standards/standards/ecma-376/.

Notes to Implementers

The derived class DeletePartCore(Uri) implementation is called by the DeletePart(Uri) method to the specified part based on the physical format implemented in the derived class.

The derived DeletePartCore(Uri) implementation should make no assumptions about the order or operations performed by the DeletePart(Uri) method that calls it.

Applies to

See also