This documentation is archived and is not being maintained.

PackagePart Members

Provides a base class for parts stored in a Package. This class is abstract.

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

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

  Name Description
Public property CompressionOption Gets the compression option of the part content stream.
Public property ContentType Gets the MIME type of the content stream.
Public property Package Gets the parent Package of the part.
Public property Uri Gets the URI of the part.

(see also Protected Methods )
  Name Description
Public method CreateRelationship Overloaded. Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource.
Public method DeleteRelationship Deletes a specified part-level PackageRelationship.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetRelationship Returns the relationship that has a specified Id.
Public method GetRelationships Returns a collection of all the relationships that are owned by this part.
Public method GetRelationshipsByType Returns a collection of the relationships that match a specified RelationshipType.
Public method GetStream Overloaded. Returns the part content data stream.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RelationshipExists Returns a value that indicates whether this part owns a relationship with a specified Id.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

  Name Description
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 GetContentTypeCore When overridden in a derived class, returns the MIME type of the part content.
Protected method GetStreamCore When overridden in a derived class, returns the part content stream opened with a specified FileMode and FileAccess.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)