Compress or decompress stream information in a .NET Framework application (refer System.IO.Compression namespace), and improve the security of application data by using isolated storage. (Refer System.IO.IsolatedStorage namespace)
- IsolatedStorageFile class
- IsolatedStorageFileStream class
- DeflateStream class
- GZipStream class
IsolatedStorageFile class - The main feature that's been added is that there is a new scope - Application. The .NET Security blog has more info on this feature. There are a few static methods that have been added making it easier to get an IsolatedStoreFile instance: GetMachineStoreForApplication, GetMachineStoreForAssembly, GetMachineStoreForDomain, GetUserStoreForApplication, GetUserStoreForAssembly, GetUserStoreForDomain.
IsolatedStorageFileStream class - Not much changed here. There is a SafeFileHandle property, which returns a Win32 handle of the actual file. By virtue of this class being based on FileStream, GetAccessControl / SetAccessControl methods are available.
DeflateStream class - This is a brand new class. It implements the Deflate algorithm. It can't handle files more than 4 gigs (uncompressed).
GZipStream class - This is also a brand new class. It implements the GZip algorithm. Same as deflate but has CRC. It is also limited to dealing 4 gig files.
There is a blog entry about the capabilities of the compression classes here .
Next up AccessControl classes