ZipPackage Methods

The ZipPackage type exposes the following members.

  Name Description
Public method Close Saves and closes the package plus all underlying part streams. (Inherited from Package.)
Public method CreatePart(Uri, String) Creates a new uncompressed part with a given URI and content type. (Inherited from Package.)
Public method CreatePart(Uri, String, CompressionOption) Creates a new part with a given URI, content type, and compression option. (Inherited from Package.)
Public method CreateRelationship(Uri, TargetMode, String) Creates a package-level relationship to a part with a given URI, target mode, and relationship type. (Inherited from Package.)
Public method CreateRelationship(Uri, TargetMode, String, String) Creates a package-level relationship to a part with a given URI, target mode, relationship type, and identifier (ID). (Inherited from Package.)
Public method DeletePart Deletes a part with a given URI from the package. (Inherited from Package.)
Public method DeleteRelationship Deletes a package-level relationship. (Inherited from Package.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Flush Saves the contents of all parts and relationships that are contained in the package. (Inherited from Package.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPart Returns the part with a given URI. (Inherited from Package.)
Public method GetParts Returns a collection of all the parts in the package. (Inherited from Package.)
Public method GetRelationship Returns the package-level relationship with a given identifier. (Inherited from Package.)
Public method GetRelationships Returns a collection of all the package-level relationships. (Inherited from Package.)
Public method GetRelationshipsByType Returns a collection of all the package-level relationships that match a given RelationshipType. (Inherited from Package.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method PartExists Indicates whether a part with a given URI is in the package. (Inherited from Package.)
Public method RelationshipExists Indicates whether a package-level relationship with a given ID is contained in the package. (Inherited from Package.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method IDisposable.Dispose This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended for application use. Use the type-safe Dispose method instead. (Inherited from Package.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft