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 and initializes it with serialized data. This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. The object that holds the serialized object data. The contextual information about the source or destination. 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 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. The value of the file that caused this error. 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. Sets the object with the file name and additional exception information. The object that holds the serialized object data. The contextual information about the source or destination. 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 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. or is . is not a valid URI. A part with the specified 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). The new created part. 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. or is . is not a valid uniform resource identifier (URI). A part with the specified is already present in the package. The value is not valid. The package is not open ( or has been called). The package is read-only (a new part cannot be added). The new created part. 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. or is . The part is a , or is and is an absolute URI. The value for is not valid. The package is not open ( or has been called). The package is read-only. The package-level relationship to the specified part. 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. or is . The part is a , or is and is an absolute URI. The value for is not valid. The package is not open ( or has been called). The package is read-only. is not a valid XML identifier; or a part with the specified already occurs in the package. The package-level relationship to the specified part. Deletes a part with a given URI from the package. The URI of the part to delete. is . 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. is . The package is not open ( or has been called). The package is read-only. is not a valid XML identifier. Flushes and saves the content of all parts and relationships, closes the package, and releases all resources. to release both managed and unmanaged resources; to release only unmanaged resources. 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. is . is not a valid uniform resource identifier (URI). A part with the specified is not in the package. The package is not open ( or has been called). The package is write-only. The part with the specified . 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 , if a part with the specified is not in the package. Returns a collection of all the parts in the package. The package is not open ( or has been called). The package is write-only. A collection of all the elements that are contained in the package. 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. is . is not a valid XML identifier. A relationship with the specified is not in the package. The package is not open ( or has been called). The package is write-only. The package-level relationship with the specified . Returns a collection of all the package-level relationships. The package is not open ( or has been called). The package is write-only. A collection of all the package-level relationships that are contained in the package. Returns a collection of all the package-level relationships that match a given . The to match and return in the collection. is . is an empty string. The package is not open ( or has been called). The package is write-only. A collection of package-level relationships that match the specified . Opens a package on a given IO stream. The IO stream on which to open the package. is . The package to open requires read or read/write permission and the specified is write-only; or, the package to open requires write or read/write permission and the specified is read-only. The opened package. 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. is . value is not valid. The package to open requires read or read/write permission and the specified is write-only; or, the package to open requires write or read/write permission and the specified is read-only. The opened package. 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. is . The value for or is not valid. The package to open requires read or read/write permission and the specified is write-only; or the package to open requires write or read/write permission and the specified is read-only. The opened package. Opens a package at a given path and file name. The path and file name of the package. is . The opened package. 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. is . Value for is not valid. The opened package. 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. is . Value for or is not valid. The opened package. 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. is . The value for , , or is not valid. The opened package. Indicates whether a part with a given URI is in the package. The of the part to check for. is . 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). if a part with the specified is in the package; otherwise, . Indicates whether a package-level relationship with a given ID is contained in the package. The of the relationship to check for. is . is not a valid XML identifier. The package is not open ( or has been called). The package is write-only. if a package-level relationship with the specified is in the package; otherwise, . This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended for application use. Use the type-safe method instead. Gets the file access setting for the package. The package is not open ( or has been called). One of the values: , , or . Gets the core properties of the package. The package is not open ( or has been called). The core properties of the package. 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. or is . 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. or is . 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. or is . is not a valid URI. The value is not valid. 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 has been deleted. -or- The is not open ( or has been called). or is . The parameter is not a valid enumeration value. The part identified by the is a relationship (the target of a relationship cannot be another relationship). -or- is specified as but is an absolute external URI. The package is read-only (a new relationship cannot be added). The part-level relationship between this to the target or external resource. 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 has been deleted. -or- The is not open ( or has been called). or is . The parameter is not a valid enumeration value. The part identified by the is a relationship (the target of a relationship cannot be another relationship). -or- is specified as but is an absolute external URI. The package is read-only (a new relationship cannot be added). is not a valid XML identifier. -or- A part with the specified already exists. The part-level relationship between this to the target or external resource. 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). is . The package is read-only (relationships cannot be deleted). is not a valid XML identifier. When overridden in a derived class, returns the MIME type of the part content. The derived class does not provide an override implementation required for the method. The MIME type of the part content. Returns the relationship that has a specified . The of the relationship to return. is . is not a valid XML identifier. is an empty string. The part has been deleted. -or- The is not open ( or has been called). -or- A relationship with the specified does not exist in the package. The package is write-only (relationship information cannot be read). The relationship that matches the specified . Returns a collection of all the relationships that are owned by this 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). A collection of all the relationships that are owned by the part. Returns a collection of the relationships that match a specified . The of the relationships to locate and return in the collection. is . 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). A collection of the relationships that match the specified . Returns the part content data stream. 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 . The content data stream for the part. Returns the content stream opened in a specified I/O . The I/O mode in which to open the content stream. The part has been deleted. -or- The is not open ( or has been called). The parameter is not a valid enumeration value. The parameter is not compatible with the package and part stream. -or- The stream object returned by the method of the derived subclass is . The content stream of the part. 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 part has been deleted. -or- The is not open ( or has been called). The parameter is not a valid enumeration value. -or- The parameter is not a valid enumeration value. or is not compatible with the package and part stream. -or- The parameter is specified as but the parameter requires write access. ( values of , , , and require or access.) -or- The stream object returned by the method of the derived subclass is . The content stream for the part. 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. Returns a value that indicates whether this part owns a relationship with a specified . The of the relationship to check for. is . 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). if this part owns a relationship with the specified ; otherwise, . Gets the compression option of the part content stream. The part has been deleted. -or- The is not open ( or has been called). The compression option of the part content stream. Gets the MIME type of the content stream. 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. The MIME type of the content data stream for the part. Gets the parent of the part. The part has been deleted. -or- The is not open ( or has been called). The parent package of the part. Gets the URI of the part. The part has been deleted. -or- The is not open ( or has been called). The URI of the part relative to the package root. 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. Releases all resources used by the instance. Releases the unmanaged resources used by the instance and optionally releases the managed resources. to release both managed and unmanaged resources; to release only unmanaged resources. 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 . 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 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 , either by relationship or relationship . The qualification string that is used to select the relationships based on the . or is . The parameter is not valid. The parameter is but is not a valid XML Schema Definition (XSD) identifier (ID). The is not valid for the specified . -or- The 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. is . 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. Defines the pack URI scheme name "pack". Returns a value that indicates whether two pack URIs are equivalent. The first pack URI. The second pack URI. Either or is not an absolute URI. -or- Either or do not begin with a "pack://" scheme. A signed integer indicating the relationship between and . Value Meaning Less than 0 is less than . 0 is equivalent to . Greater than 0 is greater than . Returns a value that indicates whether two package part URIs are equivalent. The URI of the first . The URI of the second . or is not a valid part URI syntax. A value that indicates the relationship between and . Value Meaning Less than 0 is less than . 0 is equivalent to . Greater than 0 is greater than . Creates a new pack URI that points to a package. The URI of the referenced . is . is not an absolute URI. The pack URI for the referenced by the given . Creates a pack URI given a URI and the URI of a part in the package. The URI of the . The URI of the in the package. is . is not an absolute URI. -or- is not a valid part URI syntax. The pack URI of the given . Creates a pack URI given a URI, the URI of a part in the package, and a "#" fragment to append. The URI of the . The URI of the in the package. A "#" reference identifying an element within the package part. is . is not an absolute URI. -or- is not a valid part URI syntax. -or- is empty or does begin with "#". The pack URI that identifies the specified package, package part, and fragment. Creates a formatted URI. The URI of the within the package. is . is not an absolute . A formatted URI. Returns the normalized form of a specified URI. The URI to normalize. is . does not have a valid syntax. The normalized form of the given . Returns the inner URI that points to the entire package of a specified pack URI. The pack URI from which to return the URI of the . is . is not an absolute . The URI of the from the specified . Returns the URI of a within a specified pack URI. The pack URI from which to return the URI. If the is . If the is not an absolute . -or- does not have the "pack://" scheme. -or- The partUri extracted from does not conform to the valid partUri syntax. The URI of the in the given , or if points to a package instead of a . Returns the URI of the relationship part associated with a specified . The of the to return the URI for the associated . is . syntax is not valid for a package part URI. -or- is an absolute URI. -or- references a relationship part. The URI of the part associated with the identified by . Returns the relative URI between two specified URIs. The URI of the source part. The URI of the target part. or is . Either the or does not have a valid syntax. The relative URI from to . Returns the from the with a specified URI. The URI of the relationship part to return the from. is . is an absolute URI. -or- syntax is not valid for a . -or- does not reference a relationship part. -or- The of the relationship part references another relationship part (not valid). The of the from the relationship with the specified . Returns a value that indicates whether a specified URI is the URI of a part. The URI to check for a part. is . is an absolute URI. -or- is an invalid syntax. if identifies a part; otherwise, . 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. or is . is not a valid part URI. -or- is not a valid relative URI. The URI of the target part resolved between the specified and the parameters. 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 .