Package Members

Represents a container that can store multiple data objects.

The following tables list the members exposed by the Package type.

  Name Description
Protected method Package Overloaded. Initializes a new instance of the Package class.
Top

  Name Description
Public property FileOpenAccess Gets the FileAccess setting for the package.
Public property PackageProperties Gets the core properties of the package.
Top

(see also Protected Methods )
  Name Description
Public method Close Saves and closes the package plus all underlying part streams.
Public method CreatePart Overloaded. Creates a new package part.
Public method CreateRelationship Overloaded. Creates a package-level relationship to a specified part.
Public method DeletePart Deletes a part with a specified URI from the package.
Public method DeleteRelationship Deletes a package-level relationship.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Flush Saves the contents of all parts and relationships that are contained in the package.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetPart Returns the part with a given URI.
Public method GetParts Returns a collection of all the parts in the package.
Public method GetRelationship Returns the package-level relationship with the specified Id.
Public method GetRelationships Returns a collection of all the package-level relationships.
Public method GetRelationshipsByType Returns a collection of all the package-level relationships that match a given RelationshipType.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Open Overloaded. Opens a package.
Public method PartExists Determines whether a part with a given URI is in the package.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RelationshipExists Determines whether a package-level relationship with a given ID is contained in the package.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method CreatePartCore When overridden in a derived class, creates a new part in the package.
Protected method DeletePartCore When overridden in a derived class, deletes a part with a given URI.
Protected method Dispose Flushes and saves the content of all parts and relationships, closes the package, and releases all resources.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method FlushCore When overridden in a derived class, saves the content of all parts and relationships to the derived class store.
Protected method GetPartCore When overridden in a derived class, returns the part addressed by a specified URI.
Protected method GetPartsCore When overridden in a derived class, returns an array of all the parts in the package.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.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.
Top

Community Additions

ADD
Show: