ZipPackagePart ZipPackagePart ZipPackagePart ZipPackagePart Class

Definition

Represents a part that is stored in a ZipPackage.

public ref class ZipPackagePart sealed : System::IO::Packaging::PackagePart
public sealed class ZipPackagePart : System.IO.Packaging.PackagePart
type ZipPackagePart = class
    inherit PackagePart
Public NotInheritable Class ZipPackagePart
Inherits PackagePart
Inheritance
ZipPackagePartZipPackagePartZipPackagePartZipPackagePart

Remarks

ZipPackagePart provides the derived PackagePart implementation for parts that are stored in a ZipPackage.

Properties

CompressionOption CompressionOption CompressionOption CompressionOption

Gets the compression option of the part content stream.

(Inherited from PackagePart)

ContentType ContentType ContentType ContentType

Gets the MIME type of the content stream.

(Inherited from PackagePart)

Package Package Package Package

Gets the parent Package of the part.

(Inherited from PackagePart)

Uri Uri Uri Uri

Gets the URI of the part.

(Inherited from PackagePart)

Methods

CreateRelationship(Uri, TargetMode, String) CreateRelationship(Uri, TargetMode, String) CreateRelationship(Uri, TargetMode, String) CreateRelationship(Uri, TargetMode, String)

Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource.

(Inherited from PackagePart)

CreateRelationship(Uri, TargetMode, String, String) CreateRelationship(Uri, TargetMode, String, String) CreateRelationship(Uri, TargetMode, String, String) CreateRelationship(Uri, TargetMode, String, String)

Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource.

(Inherited from PackagePart)

DeleteRelationship(String) DeleteRelationship(String) DeleteRelationship(String) DeleteRelationship(String)

Deletes a specified part-level PackageRelationship.

(Inherited from PackagePart)

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)

GetContentTypeCore() GetContentTypeCore() GetContentTypeCore() GetContentTypeCore()

When overridden in a derived class, returns the MIME type of the part content.

(Inherited from PackagePart)

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)

GetRelationship(String) GetRelationship(String) GetRelationship(String) GetRelationship(String)

Returns the relationship that has a specified Id.

(Inherited from PackagePart)

GetRelationships() GetRelationships() GetRelationships() GetRelationships()

Returns a collection of all the relationships that are owned by this part.

(Inherited from PackagePart)

GetRelationshipsByType(String) GetRelationshipsByType(String) GetRelationshipsByType(String) GetRelationshipsByType(String)

Returns a collection of the relationships that match a specified RelationshipType.

(Inherited from PackagePart)

GetStream() GetStream() GetStream() GetStream()

Returns the part content data stream.

(Inherited from PackagePart)

GetStream(FileMode) GetStream(FileMode) GetStream(FileMode) GetStream(FileMode)

Returns the content stream opened in a specified I/O FileMode.

(Inherited from PackagePart)

GetStream(FileMode, FileAccess) GetStream(FileMode, FileAccess) GetStream(FileMode, FileAccess) GetStream(FileMode, FileAccess)

Returns the part content stream opened with a specified FileMode and FileAccess.

(Inherited from PackagePart)

GetStreamCore(FileMode, FileAccess) GetStreamCore(FileMode, FileAccess) GetStreamCore(FileMode, FileAccess) GetStreamCore(FileMode, FileAccess)

When overridden in a derived class, returns the part content stream opened with a specified FileMode and FileAccess.

(Inherited from PackagePart)

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)

RelationshipExists(String) RelationshipExists(String) RelationshipExists(String) RelationshipExists(String)

Returns a value that indicates whether this part owns a relationship with a specified Id.

(Inherited from PackagePart)

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also