This topic has not yet been rated - Rate this topic

Package Members

Represents a container that can store multiple data objects.

The Package type exposes the following members.

  NameDescription
Protected method Package Overloaded. Initializes a new instance of the Package class.
Top
  NameDescription
Public method Close Saves and closes the package plus all underlying part streams.
Public method CreatePart Overloaded. Creates a new package part.
Protected method CreatePartCore When overridden in a derived class, creates a new part in the package.
Public method CreateRelationship Overloaded. Creates a package-level relationship to a given part.
Public method DeletePart Deletes a part with a given URI from the package.
Protected method DeletePartCore When overridden in a derived class, deletes a part with a given URI.
Public method DeleteRelationship Deletes a package-level relationship.
Protected method Dispose Flushes and saves the content of all parts and relationships, closes the package, and releases all resources.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Saves the contents of all parts and relationships that are contained in the package.
Protected method FlushCore When overridden in a derived class, saves the content of all parts and relationships to the derived class store.
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.
Protected method GetPartCore When overridden in a derived class, returns the part addressed by a given URI.
Public method GetParts Returns a collection of all the parts in the package.
Protected method GetPartsCore When overridden in a derived class, returns an array of all the parts in the package.
Public method GetRelationship Returns the package-level relationship with a given identifier.
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Open Overloaded. Opens a package.
Public method PartExists Indicates whether a part with a given URI is in the package.
Public method RelationshipExists Indicates 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
  NameDescription
Public property FileOpenAccess Gets the file access setting for the package.
Public property PackageProperties Gets the core properties of the package.
Top
  NameDescription
Explicit interface implemetation Private method 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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.