PackagePart Class
.NET Framework 4.5
Provides a base class for parts stored in a Package. This class is abstract.
Namespace: System.IO.Packaging
Assembly: WindowsBase (in WindowsBase.dll)
The PackagePart type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PackagePart(Package, Uri) | Initializes a new instance of the PackagePart class with a specified parent Package and part URI. |
![]() | PackagePart(Package, Uri, String) | Initializes a new instance of the PackagePart class with a specified parent Package, part URI, and MIME content type. |
![]() | PackagePart(Package, Uri, String, CompressionOption) | Initializes a new instance of the PackagePart class with a specified parent Package, part URI, MIME content type, and CompressionOption. |
| Name | Description | |
|---|---|---|
![]() | CompressionOption | Gets the compression option of the part content stream. |
![]() | ContentType | Gets the MIME type of the content stream. |
![]() | Package | Gets the parent Package of the part. |
![]() | Uri | Gets the URI of the part. |
| Name | Description | |
|---|---|---|
![]() | CreateRelationship(Uri, TargetMode, String) | Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource. |
![]() | CreateRelationship(Uri, TargetMode, String, String) | Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource. |
![]() | DeleteRelationship | Deletes a specified part-level PackageRelationship. |
![]() | 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.) |
![]() | GetContentTypeCore | When overridden in a derived class, returns the MIME type of the part content. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetRelationship | Returns the relationship that has a specified Id. |
![]() | GetRelationships | Returns a collection of all the relationships that are owned by this part. |
![]() | GetRelationshipsByType | Returns a collection of the relationships that match a specified RelationshipType. |
![]() | GetStream() | Returns the part content data stream. |
![]() | GetStream(FileMode) | Returns the content stream opened in a specified I/O FileMode. |
![]() | GetStream(FileMode, FileAccess) | Returns the part content stream opened with a specified FileMode and FileAccess. |
![]() | GetStreamCore | When overridden in a derived class, returns the part content stream opened with a specified FileMode and FileAccess. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RelationshipExists | Returns a value that indicates whether this part owns a relationship with a specified Id. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
