Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ZipPackagePart Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a part that is stored in a ZipPackage.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

System.Object
  System.IO.Packaging.PackagePart
    System.IO.Packaging.ZipPackagePart

public sealed class ZipPackagePart : PackagePart

NameDescription
System_CAPS_pubpropertyCompressionOption

Gets the compression option of the part content stream.(Inherited from PackagePart.)

System_CAPS_pubpropertyContentType

Gets the MIME type of the content stream.(Inherited from PackagePart.)

System_CAPS_pubpropertyPackage

Gets the parent Package of the part.(Inherited from PackagePart.)

System_CAPS_pubpropertyUri

Gets the URI of the part.(Inherited from PackagePart.)

NameDescription
System_CAPS_pubmethodCreateRelationship(Uri, TargetMode, String)

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

System_CAPS_pubmethodCreateRelationship(Uri, TargetMode, String, String)

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

System_CAPS_pubmethodDeleteRelationship(String)

Deletes a specified part-level PackageRelationship.(Inherited from PackagePart.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetRelationship(String)

Returns the relationship that has a specified Id. (Inherited from PackagePart.)

System_CAPS_pubmethodGetRelationships()

Returns a collection of all the relationships that are owned by this part.(Inherited from PackagePart.)

System_CAPS_pubmethodGetRelationshipsByType(String)

Returns a collection of the relationships that match a specified RelationshipType.(Inherited from PackagePart.)

System_CAPS_pubmethodGetStream()

Returns the part content data stream.(Inherited from PackagePart.)

System_CAPS_pubmethodGetStream(FileMode)

Returns the content stream opened in a specified I/O FileMode.(Inherited from PackagePart.)

System_CAPS_pubmethodGetStream(FileMode, FileAccess)

Returns the part content stream opened with a specified FileMode and FileAccess.(Inherited from PackagePart.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRelationshipExists(String)

Returns a value that indicates whether this part owns a relationship with a specified Id.(Inherited from PackagePart.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: