Version

Package Class Members

The following tables list the members exposed by Package.

Public Properties
 NameDescription
Public PropertyContentTypesXmlDocumentGets the document specifying the content types in the package.  
Public PropertyPartsReturns a collection of all parts in the package, keyed by their path.  
Public PropertyRelationshipsReturns a collection of all the relationships that are owned by this package.  
Public PropertyRelationsXmlDocumentGets or sets the document representing the relationships for this package.  
Protected Properties
 NameDescription
Protected Internal PropertyContentTypesZipEntryGets the System.IO.Compression.ZipArchiveEntry containing the content types for the package.  
Protected Internal PropertyPackageModeGets or sets the System.IO.FileMode used to open the package.  
Protected Internal PropertyRelationsZipEntryGets the System.IO.Compression.ZipArchiveEntry containing the relationships for the package.  
Protected Internal PropertyZipFileGets or sets the ZipFile the package is representing.  
Public Methods
 NameDescription
Public MethodCreatePartCreates a new uncompressed part with a given URI and content type.  
Public MethodCreateRelationshipCreates a package-level relationship to a part with a given URI, target mode, relationship type, and identifier (ID).  
Public MethodDisposeDisposes the package.  
Public MethodGetPartReturns the part with a given URI.  
Public MethodGetPartsReturns a collection of all the parts in the package.  
Public MethodGetRelationshipReturns the relationship that has a specified IPackageRelationship.Id.  
Public MethodGetRelationshipsReturns a collection of all the package-level relationships.  
Public MethodPartExistsIndicates whether a part with a given URI is in the package.  
See Also