ZipArchiveEntry Class

System.Object
  Microsoft.TeamFoundation.Framework.Server.ZipArchiveEntry

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public class ZipArchiveEntry

The ZipArchiveEntry type exposes the following members.

  NameDescription
Public propertyArchiveThe ZipArchive that this entry belongs to. If this entry has been deleted, this will return null.
Public propertyCompressedLengthThe compressed size of the entry. If the archive that the entry belongs to is in Create mode, attempts to get this property will always throw an exception. If the archive that the entry belongs to is in update mode, this property will only be valid if the entry has not been opened.
Public propertyFullNameThe relative path of the entry as stored in the Zip archive. Note that Zip archives allow for any string to be the path of the entry. This includes invalid and absolute paths.
Public propertyLastWriteTimeThe last write time of the entry as stored in the Zip archive. When setting this property, the DateTime will be converted to the Zip timestamp format, which supports a resolution of two seconds. If the data in the last write time field is not a valid Zip timestamp, an indicator value of 1980 January 1 at midnight will be returned.
Public propertyLengthThe uncompressed size of the entry. This property is not valid in Create mode, and it is only valid in Update mode if the entry has not been opened.
Public propertyNameThe file name of the entry. This is equivalent to the substring of Fullname that follows the final directory separator character.
Top

  NameDescription
Public methodDeleteDeletes the entry from the archive.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExtractToFile(String)Creates a file on the file system with the entry’s contents and the specified name. The last write time of the file is set to the entry’s last write time. This method does not allow for overwriting of an existing file that has the same name. Attempting to extract explicit directories (entries with names that end in directory separator characters) will not create a directory.
Public methodExtractToFile(String, Boolean)Creates a file on the file system with the entry’s contents and the specified name. The last write time of the file is set to the entry’s last write time. This method enables overwriting of an existing file with the same name.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOpenOpens the entry. If the archive that the entry belongs to was opened in Read mode, the returned stream will be readable, and it may or may not be seekable. If Create mode, the returned stream will be writeable and not seekable. If Update mode, the returned stream will be readable, writeable, seekable, and support SetLength.
Public methodToStringReturns the FullName of the entry. (Overrides Object.ToString().)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft