This documentation is archived and is not being maintained.
Package Methods
Visual Studio 2010
The Package type exposes the following members.
| Name | Description | |
|---|---|---|
|
Close | Saves and closes the package plus all underlying part streams. |
|
CreatePart(Uri, String) | Creates a new uncompressed part with a given URI and content type. |
|
CreatePart(Uri, String, CompressionOption) | Creates a new part with a given URI, content type, and compression option. |
|
CreatePartCore | When overridden in a derived class, creates a new part in the package. |
|
CreateRelationship(Uri, TargetMode, String) | Creates a package-level relationship to a part with a given URI, target mode, and relationship type. |
|
CreateRelationship(Uri, TargetMode, String, String) | Creates a package-level relationship to a part with a given URI, target mode, relationship type, and identifier (ID). |
|
DeletePart | Deletes a part with a given URI from the package. |
|
DeletePartCore | When overridden in a derived class, deletes a part with a given URI. |
|
DeleteRelationship | Deletes a package-level relationship. |
|
Dispose | Flushes and saves the content of all parts and relationships, closes the package, and releases all resources. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Flush | Saves the contents of all parts and relationships that are contained in the package. |
|
FlushCore | When overridden in a derived class, saves the content of all parts and relationships to the derived class store. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetPart | Returns the part with a given URI. |
|
GetPartCore | When overridden in a derived class, returns the part addressed by a given URI. |
|
GetParts | Returns a collection of all the parts in the package. |
|
GetPartsCore | When overridden in a derived class, returns an array of all the parts in the package. |
|
GetRelationship | Returns the package-level relationship with a given identifier. |
|
GetRelationships | Returns a collection of all the package-level relationships. |
|
GetRelationshipsByType | Returns a collection of all the package-level relationships that match a given RelationshipType. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Open(Stream) | Opens a package on a given IO stream. |
|
Open(String) | Opens a package at a given path and file name. |
|
Open(Stream, FileMode) | Opens a package with a given IO stream and file mode. |
|
Open(String, FileMode) | Opens a package at a given path using a given file mode. |
|
Open(Stream, FileMode, FileAccess) | Opens a package with a given IO stream, file mode, and file access setting. |
|
Open(String, FileMode, FileAccess) | Opens a package at a given path using a given file mode and file access setting. |
|
Open(String, FileMode, FileAccess, FileShare) | Opens a package at a given path using a given file mode, file access, and file share setting. |
|
PartExists | Indicates whether a part with a given URI is in the package. |
|
RelationshipExists | Indicates whether a package-level relationship with a given ID is contained in the package. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
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. |
Show: