System.IO.Packaging Namespace

 

Provides classes that support storage of multiple data objects in a single container.

ClassDescription
System_CAPS_pubclassEncryptedPackageEnvelope

Represents an OLE compound file that contains an encrypted package.

System_CAPS_pubclassPackage

Represents a container that can store multiple data objects.

System_CAPS_pubclassPackageDigitalSignature

Represents a digital signature that is applied to a set of package parts and relationships.

System_CAPS_pubclassPackageDigitalSignatureManager

Provides a utility class for the creation and verification of digital signatures in a Package.

System_CAPS_pubclassPackagePart

Provides a base class for parts stored in a Package. This class is abstract.

System_CAPS_pubclassPackagePartCollection

Represents a collection of PackagePart objects.

System_CAPS_pubclassPackageProperties

Represents the core properties of a Package.

System_CAPS_pubclassPackageRelationship

Represents an association between a source Package or PackagePart, and a target object which can be a PackagePart or external resource.

System_CAPS_pubclassPackageRelationshipCollection

Represents a collection of PackageRelationship elements that are owned by a given PackagePart or the Package.

System_CAPS_pubclassPackageRelationshipSelector

Defines PackageRelationship criteria to select part-level or package-level relationships.

System_CAPS_pubclassPackageStore

Represents a collection of application-specific Package instances used in combination with PackWebRequest.

System_CAPS_pubclassPackUriHelper

Provides utility methods to compose and parse pack URI objects.

System_CAPS_pubclassPackWebRequest

Makes a request to an entire PackagePart or to a PackagePart in a package, identified by a pack URI.

System_CAPS_pubclassPackWebRequestFactory

Represents the class that is invoked when an instance of a pack URI PackWebRequest is created.

System_CAPS_pubclassPackWebResponse

Represents a response of a PackWebRequest.

System_CAPS_pubclassRightsManagementInformation

Represents Digital Rights Management (DRM) information that is stored in an EncryptedPackageEnvelope.

System_CAPS_pubclassSignatureVerificationEventArgs

Specifies the event args provided to the InvalidSignatureEventHandler.

System_CAPS_pubclassStorageInfo

Provides access and information for manipulating data stores in a Package.

System_CAPS_pubclassStreamInfo

Provides access and information for manipulating I/O streams within a Package.

System_CAPS_pubclassZipPackage

Implements a derived subclass of the abstract Package base class—the ZipPackage class uses a ZIP archive as the container store. This class cannot be inherited.

System_CAPS_pubclassZipPackagePart

Represents a part that is stored in a ZipPackage.

DelegateDescription
System_CAPS_pubdelegateInvalidSignatureEventHandler

Represents the method that handles the InvalidSignatureEvent that is raised when VerifySignatures detects an invalid signature.

EnumerationDescription
System_CAPS_pubenumCertificateEmbeddingOption

Specifies the location where the X.509 certificate that is used in signing is stored.

System_CAPS_pubenumCompressionOption

Specifies the compression level for content that is stored in a PackagePart.

System_CAPS_pubenumEncryptionOption

Specifies the encryption option for parts in a Package.

System_CAPS_pubenumPackageRelationshipSelectorType

Specifies the type of selection criteria that is used to match and return PackageRelationship selections through a PackageRelationshipSelector.

System_CAPS_pubenumTargetMode

Specifies whether the target of a PackageRelationship is inside or outside the Package.

System_CAPS_pubenumVerifyResult

Specifies the result of a certificate or signature verification.

Package is an abstract class that can be used to organize objects into a single entity of a defined physical format for portability and efficient access.

A ZIP file is the primary physical format for the Package. Other Package implementations might use other physical formats such as an XML document, a database, or Web service.

Like a file system, items contained in a Package are referenced in a hierarchical organization of folders and files.

Although Package is an abstract class, the ZipPackage derived class is used as default by the Package.Open method.

A PackagePart ("part") is the abstract class that represents an object that is stored in a Package.

A PackageRelationship ("relationship") defines an association between a source Package or PackagePart and a target object. A PackageRelationship can be one of two types, each of which can be one of two forms:

The relationship's source Package or source PackagePart is considered the "owner" of the relationship. When the source object is deleted, all the relationships owned by the source object are also deleted. The process of creating or deleting a relationship does not physically change either the source or target objects in any way.

A PackageDigitalSignature ("digital signature") is a composition of parts and relationships representing a digital signature included with a Package. The digital signature identifies the originator and validates that the signed parts and relationships contained in the Package have not been modified.

Packages also support Digital Rights Management (DRM), which allows content elements in a Package to be encrypted with specific access rights granted to authorized users.

Based on the Package architecture, an XpsDocument is a package type designed for storing documents based on the open XML Paper Specification (XPS).

Windows Presentation Foundation (WPF) uses packages to store content, resources, and relationships for pages and documents using a standard ZIP file by default. As with any ZIP file, your application can use the System.IO.Packaging classes to store and optionally protect any type or number of data files in a single efficient-to-access container.

For more information, see the Open Packaging Conventions (OPC) specification, available for download at the XPS section of Windows Hardware Developer Central.

Return to top
Show: