System.IO.Packaging The exception that is thrown when an input file or a data stream that is supposed to conform to a certain file format specification is malformed. Creates a new instance of the class. Creates a new instance of the class with a specified error message. A value that represents the error message. Creates a new instance of the class with a source URI value. The value of the file that caused this error. Creates a new instance of the class with a specified error message and exception type. A value that represents the error message. The value of the property, which represents the cause of the current exception. Creates a new instance of the class with a source URI value and an exception type. The value of the file that caused this error. The value of the property, which represents the cause of the current exception. Creates a new instance of the class with a source URI value and a specified error message. The value of the file that caused this error. A value that represents the error message. Creates a new instance of the class with a source URI value, a specified error message, and an exception type. The value of the file that caused this error. A value that represents the error message. The value of the property, which represents the cause of the current exception. Gets the name of a file that caused the . A that represents the name the file that caused the exception. Specifies the compression level for content that is stored in a . Compression is optimized for performance. Compression is optimized for size. Compression is optimized for a balance between size and performance. Compression is turned off. Compression is optimized for high performance. Specifies the encryption option for parts in a . No encryption. Encryption supported through rights management. Represents a container that can store multiple data objects. Initializes a new instance of the class that uses a given . The file IO permissions for the package. The value for openFileAccess is not valid. Saves and closes the package plus all underlying part streams. Creates a new uncompressed part with a given URI and content type. The uniform resource identifier (URI) of the new part. The content type of the data stream. The new created part. partUri or contentType is null. partUri is not a valid URI. A part with the specified partUri is already present in the package. The package is not open ( or has been called). The package is read-only (a new part cannot be added). Creates a new part with a given URI, content type, and compression option. The URI of the new part. The content type of the data stream. The compression option for the data stream, or compression. The new created part. partUri or contentType is null. partUri is not a valid uniform resource identifier (URI). A part with the specified partUri is already present in the package. The compressionOption value is not valid. The package is not open ( or has been called). The package is read-only (a new part cannot be added). When overridden in a derived class, creates a new part in the package. The uniform resource identifier (URI) for the part being created. The content type of the data stream. The compression option for the data stream. The created part. Creates a package-level relationship to a part with a given URI, target mode, and relationship type. The uniform resource identifier (URI) of the target part. Indicates if the target part is or to the package. A URI that uniquely defines the role of the relationship. The package-level relationship to the specified part. targetUri or relationshipType is null. The targetUri part is a , or targetMode is and targetUri is an absolute URI. The value for targetMode is not valid. The package is not open ( or has been called). The package is read-only. Creates a package-level relationship to a part with a given URI, target mode, relationship type, and identifier (ID). The uniform resource identifier (URI) of the target part. Indicates if the target part is or to the package. A URI that uniquely defines the role of the relationship. A unique XML identifier. The package-level relationship to the specified part. targetUri or relationshipType is null. The targetUri part is a , or targetMode is and targetUri is an absolute URI. The value for targetMode is not valid. The package is not open ( or has been called). The package is read-only. id is not a valid XML identifier; or a part with the specified id already occurs in the package. Deletes a part with a given URI from the package. The URI of the part to delete. partUri is null. partUri is not a valid URI. The package is not open ( or has been called). The package is read-only. When overridden in a derived class, deletes a part with a given URI. The of the to delete. Deletes a package-level relationship. The of the to delete. id is null. The package is not open ( or has been called). The package is read-only. id is not a valid XML identifier. Flushes and saves the content of all parts and relationships, closes the package, and releases all resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. Gets the file access setting for the package. One of the values: , , or . The package is not open ( or has been called). Saves the contents of all parts and relationships that are contained in the package. The package is not open ( or has been called). The package is read-only and cannot be modified. When overridden in a derived class, saves the content of all parts and relationships to the derived class store. Returns the part with a given URI. The uniform resource identifier (URI) of the part to return. The part with the specified partUri. partUri is null. partUri is not a valid uniform resource identifier (URI). A part with the specified partUri is not in the package. The package is not open ( or has been called). The package is write-only. When overridden in a derived class, returns the part addressed by a given URI. The uniform resource identifier (URI) of the part to retrieve. The requested part; or null, if a part with the specified partUri is not in the package. Returns a collection of all the parts in the package. A collection of all the elements that are contained in the package. The package is not open ( or has been called). The package is write-only. When overridden in a derived class, returns an array of all the parts in the package. An array of all the parts that are contained in the package. Returns the package-level relationship with a given identifier. The of the relationship to return. The package-level relationship with the specified id. id is null. id is not a valid XML identifier. A relationship with the specified id is not in the package. The package is not open ( or has been called). The package is write-only. Returns a collection of all the package-level relationships. A collection of all the package-level relationships that are contained in the package. The package is not open ( or has been called). The package is write-only. Returns a collection of all the package-level relationships that match a given . The to match and return in the collection. A collection of package-level relationships that match the specified relationshipType. relationshipType is null. relationshipType is an empty string. The package is not open ( or has been called). The package is write-only. Opens a package on a given IO stream. The IO stream on which to open the package. The opened package. stream is null. The package to open requires read or read/write permission and the specified stream is write-only; or, the package to open requires write or read/write permission and the specified stream is read-only. Opens a package at a given path and file name. The path and file name of the package. The opened package. path is null. Opens a package with a given IO stream and file mode. The IO stream on which to open the package. The file mode in which to open the package. The opened package. stream is null. packageMode value is not valid. The package to open requires read or read/write permission and the specified stream is write-only; or, the package to open requires write or read/write permission and the specified stream is read-only. Opens a package at a given path using a given file mode. The path and file name of the package. The file mode in which to open the package. The opened package. path is null. Value for packageMode is not valid. Opens a package with a given IO stream, file mode, and file access setting. The IO stream on which to open the package. The file mode in which to open the package. The file access in which to open the package. The opened package. stream is null. The value for packageMode or packageAccess is not valid. The package to open requires read or read/write permission and the specified stream is write-only; or the package to open requires write or read/write permission and the specified stream is read-only. Opens a package at a given path using a given file mode and file access setting. The path and file name of the package. The file mode in which to open the package. The file access in which to open the package. The opened package. path is null. Value for packageMode or packageAccess is not valid. Opens a package at a given path using a given file mode, file access, and file share setting. The path and file name of the package. The file mode in which to open the package. The file access in which to open the package. The file sharing mode in which to open the package. The opened package. path is null. The value for packageMode, packageAccess, or packageShare is not valid. Gets the core properties of the package. The core properties of the package. The package is not open ( or has been called). Indicates whether a part with a given URI is in the package. The of the part to check for. true if a part with the specified partUri is in the package; otherwise, false. partUri is null. partUri is not a valid uniform resource identifier (URI). The package is not open ( or has been called). The package is write-only (information cannot be read). Indicates whether a package-level relationship with a given ID is contained in the package. The of the relationship to check for. true if a package-level relationship with the specified id is in the package; otherwise, false. id is null. id is not a valid XML identifier. The package is not open ( or has been called). The package is write-only. This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended for application use. Use the type-safe method instead. Provides a base class for parts stored in a . This class is abstract. Initializes a new instance of the class with a specified parent and part URI. The parent of the part. The URI of the part, relative to the parent root. package or partUri is null. Initializes a new instance of the class with a specified parent , part URI, and MIME content type. The parent of the part. The URI of the part, relative to the parent root. The MIME content type of the part data stream. package or partUri is null. partUri is not a valid URI. Initializes a new instance of the class with a specified parent , part URI, MIME content type, and . The parent of the part. The URI of the part, relative to the parent root. The MIME content type of the part's data stream. The compression option of the part data stream. package or partUri is null. partUri is not a valid URI. The compressionOption value is not valid. Gets the compression option of the part content stream. The compression option of the part content stream. The part has been deleted. -or- The is not open ( or has been called). Gets the MIME type of the content stream. The MIME type of the content data stream for the part. The part has been deleted. -or- The is not open ( or has been called). -or- The string returned by the derived class method is empty. Creates a part-level relationship between this to a specified target or external resource. The URI of the target part. One of the enumeration values. For example, if the target part is inside the ; or if the target is a resource outside the . The role of the relationship. The part-level relationship between this to the target or external resource. The part has been deleted. -or- The is not open ( or has been called). targetUri or relationshipType is null. The targetMode parameter is not a valid enumeration value. The part identified by the targetUri is a relationship (the target of a relationship cannot be another relationship). -or- targetMode is specified as but targetUri is an absolute external URI. The package is read-only (a new relationship cannot be added). Creates a part-level relationship between this to a specified target or external resource. The URI of the target part. One of the enumeration values. For example, if the target part is inside the ; or if the target is a resource outside the . The role of the relationship. A unique ID for the relationship. The part-level relationship between this to the target or external resource. The part has been deleted. -or- The is not open ( or has been called). targetUri or relationshipType is null. The targetMode parameter is not a valid enumeration value. The part identified by the targetUri is a relationship (the target of a relationship cannot be another relationship). -or- targetMode is specified as but targetUri is an absolute external URI. The package is read-only (a new relationship cannot be added). id is not a valid XML identifier. -or- A part with the specified id already exists. Deletes a specified part-level . The of the relationship to delete. The part has been deleted. -or- The is not open ( or has been called). id is null. The package is read-only (relationships cannot be deleted). id is not a valid XML identifier. When overridden in a derived class, returns the MIME type of the part content. The MIME type of the part content. The derived class does not provide an override implementation required for the method. Returns the relationship that has a specified . The of the relationship to return. The relationship that matches the specified id. id is null. id is not a valid XML identifier. relationshipType is an empty string. The part has been deleted. -or- The is not open ( or has been called). -or- A relationship with the specified id does not exist in the package. The package is write-only (relationship information cannot be read). Returns a collection of all the relationships that are owned by this part. A collection of all the relationships that are owned by the part. The part has been deleted. -or- The is not open ( or has been called). The package is write-only (relationship information cannot be read). Returns a collection of the relationships that match a specified . The of the relationships to locate and return in the collection. A collection of the relationships that match the specified relationshipType. relationshipType is null. relationshipType is an empty string. The part has been deleted. -or- The is not open ( or has been called). The package is write-only (relationship information cannot be read). Returns the part content data stream. The content data stream for the part. The part has been deleted. -or- The is not open ( or has been called). The stream object returned by the method of the derived subclass is null. Returns the content stream opened in a specified I/O . The I/O mode in which to open the content stream. The content stream of the part. The part has been deleted. -or- The is not open ( or has been called). The mode parameter is not a valid enumeration value. The mode parameter is not compatible with the package and part stream. -or- The stream object returned by the method of the derived subclass is null. Returns the part content stream opened with a specified and . The I/O mode in which to open the content stream. The access permissions to use in opening the content stream. The content stream for the part. The part has been deleted. -or- The is not open ( or has been called). The mode parameter is not a valid enumeration value. -or- The access parameter is not a valid enumeration value. mode or access is not compatible with the package and part stream. -or- The access parameter is specified as but the mode parameter requires write access. ( values of , , , and require or access.) -or- The stream object returned by the method of the derived subclass is null. When overridden in a derived class, returns the part content stream opened with a specified and . The I/O mode in which to open the content stream. The access permissions to use in opening the content stream. The content data stream of the part. Gets the parent of the part. The parent package of the part. The part has been deleted. -or- The is not open ( or has been called). Returns a value that indicates whether this part owns a relationship with a specified . The of the relationship to check for. true if this part owns a relationship with the specified id; otherwise, false. id is null. id is not a valid XML identifier. The part has been deleted. -or- The is not open ( or has been called). The package is write-only (relationship information cannot be read). Gets the URI of the part. The URI of the part relative to the package root. The part has been deleted. -or- The is not open ( or has been called). Represents a collection of objects. Returns an enumerator for iterating through the parts in the collection. An enumerator for iterating through the elements in the collection. Returns an enumerator that iterates through the collection. An object that can be used to iterate through the collection. For a description of this member, see . An object that can be used to iterate through the collection. Represents the core properties of a . Initializes a new instance of the class. When overridden in a derived class, gets or sets the category of the . The category of the content that is contained in the . When overridden in a derived class, gets or sets a value that represents the status of the . The status of the content. When overridden in a derived class, gets or sets a value that represents the type of content that is contained in the . The type of content that is contained in the . When overridden in a derived class, gets or sets the date and time the was created. The date and time the was initially created. When overridden in a derived class, gets or sets a value that identifies the individual or entity that created the and its content. The individual or entity that created the and its content. When overridden in a derived class, gets or sets a description of the content contained in the . A description of the content contained in the . Releases all resources used by the instance. Releases the unmanaged resources used by the instance and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. When overridden in a derived class, gets or sets a value that unambiguously identifies the and its content. A value that unambiguously identifies the and its content. When overridden in a derived class, gets or sets a value that define a delimited set of keywords to support searching and indexing the and its content. A delimited set of keywords to support searching and indexing the and content. When overridden in a derived class, gets or sets a value that identifies the language of the content. A value that identifies the content language. When overridden in a derived class, gets or sets a value that identifies the user who last modified the content. The user who last modified the content. When overridden in a derived class, gets or sets the date and time the content was last printed. The date and time the content was last printed. When overridden in a derived class, gets or sets the date and time the was last changed. The date and time the was last changed. When overridden in a derived class, gets or sets the revision number of the . The revision number of the . When overridden in a derived class, gets or sets the topic of the content. The topic of the content. When overridden in a derived class, gets or sets the name given to the and its content. The name given to the and its content. When overridden in a derived class, gets or sets the version number of the . The version number of the . Represents an association between a source or , and a target object which can be a or external resource. Gets a string that identifies the relationship. A string that identifies the relationship. Gets the that contains this relationship. The package that contains this relationship. Gets the qualified type name of the relationship. The qualified type name of the relationship. Gets the URI of the package or part that owns the relationship. The URI of the or that owns the relationship. Gets a value that indicates whether the target of the relationship is or to the . An enumeration value that indicates whether references a resource or to the . Gets the URI of the target resource of the relationship. The URI of the target resource. Represents a collection of elements that are owned by a given or the . Returns an enumerator for iterating through the relationships in the collection. An enumerator for iterating through the elements in the collection. This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Do not use—use . Defines criteria to select part-level or package-level relationships. Initializes a new instance of the class. The uniform resource identifier (URI) of the or the (SourceUri="/") that owns the relationship. The type of the selectionCriteria, either by relationship or relationship . The qualification string that is used to select the relationships based on the selectorType. sourceUri or selectionCriteria is null. The selectorType parameter is not valid. The selectorType parameter is but selectionCriteria is not a valid XML Schema Definition (XSD) identifier (ID). The sourceUri is not the root ("/") and is also not a valid URI. Returns a list of objects that match the defined , , and . The package from which to select the relationships based on the selection criteria. A list of relationships that match the selection parameters specified to the constructor. Gets the selection criteria specified to the constructor. The selection criteria based on the of or specified to the constructor. Gets the specified to the constructor. The selector type of or specified to the constructor. Gets the root package URI ("/") or part specified to the constructor as the owner of the relationship. The root package URI ("/") or part specified to the constructor as the owner of the relationship. Specifies the type of selection criteria that is used to match and return selections through a . selections are by . selections are by . Provides utility methods to compose and parse pack URI objects. Returns a value that indicates whether two package part URIs are equivalent. The URI of the first . The URI of the second .

A value that indicates the relationship between firstPartUri and secondPartUri.

Value

Meaning

Less than 0

firstPartUri is less than secondPartUri.

0

firstPartUri is equivalent to secondPartUri.

Greater than 0

firstPartUri is greater than secondPartUri.

firstPartUri or secondPartUri is not a valid part URI syntax.
Creates a formatted URI. The URI of the within the package. A formatted URI. Returns the normalized form of a specified URI. The URI to normalize. The normalized form of the given partUri. partUri is null. Returns the URI of the relationship part associated with a specified . The of the to return the URI for the associated . The URI of the part associated with the identified by partUri. partUri is null. partUri syntax is not valid for a package part URI. -or- partUri is an absolute URI. -or- partUri references a relationship part. Returns the relative URI between two specified URIs. The URI of the source part. The URI of the target part. The relative URI from sourcePartUri to targetPartUri. sourcePartUri or targetPartUri is null. Returns the from the with a specified URI. The URI of the relationship part to return the from. The of the from the relationship with the specified relationshipPartUri. relationshipPartUri is null. relationshipPartUri is an absolute URI. -or- relationshipPartUri syntax is not valid for a . -or- relationshipPartUri does not reference a relationship part. -or- The of the relationship part references another relationship part (not valid). Returns a value that indicates whether a specified URI is the URI of a part. The URI to check for a part. true if partUri identifies a part; otherwise, false. partUri is null. partUri is an absolute URI. -or- partUri is an invalid syntax. Returns a part URI given a source part URI and a URI with a relative path to a target part. The URI of the source part, or "/" to designate the root. The relative URI to the target part. The URI of the target part resolved between the specified SourcePartUri and the targetUri parameters. sourcePartUri or targetUri is null. sourcePartUri is not a valid part URI. -or- targetUri is not a valid relative URI. Defines the pack URI scheme name "pack". Specifies whether the target of a is inside or outside the . The relationship references a resource that is external to the package. The relationship references a part that is inside the package. Implements a derived subclass of the abstract base class—the class uses a ZIP archive as the container store. This class cannot be inherited. Represents a part that is stored in a .