Export (0) Print
Expand All

ZipPackagePart Class

Represents a part that is stored in a ZipPackage.

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

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

'Declaration
Public NotInheritable Class ZipPackagePart _
	Inherits PackagePart

The ZipPackagePart type exposes the following members.

  NameDescription
Public propertyCompressionOptionGets the compression option of the part content stream. (Inherited from PackagePart.)
Public propertyContentTypeGets the MIME type of the content stream. (Inherited from PackagePart.)
Public propertyPackageGets the parent Package of the part. (Inherited from PackagePart.)
Public propertyUriGets the URI of the part. (Inherited from PackagePart.)
Top

  NameDescription
Public methodCreateRelationship(Uri, TargetMode, String)Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource. (Inherited from PackagePart.)
Public methodCreateRelationship(Uri, TargetMode, String, String)Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource. (Inherited from PackagePart.)
Public methodDeleteRelationshipDeletes a specified part-level PackageRelationship. (Inherited from PackagePart.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetRelationshipReturns the relationship that has a specified Id. (Inherited from PackagePart.)
Public methodGetRelationshipsReturns a collection of all the relationships that are owned by this part. (Inherited from PackagePart.)
Public methodGetRelationshipsByTypeReturns a collection of the relationships that match a specified RelationshipType. (Inherited from PackagePart.)
Public methodGetStreamReturns the part content data stream. (Inherited from PackagePart.)
Public methodGetStream(FileMode)Returns the content stream opened in a specified I/O FileMode. (Inherited from PackagePart.)
Public methodGetStream(FileMode, FileAccess)Returns the part content stream opened with a specified FileMode and FileAccess. (Inherited from PackagePart.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodRelationshipExistsReturns a value that indicates whether this part owns a relationship with a specified Id. (Inherited from PackagePart.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, 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.

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