PST .NET Class Library
Show/Hide TOC

# Stream Class

Represents a virtual stream to store data.

## Definition

Namespace: Independentsoft.IO.StructuredStorage
Assembly: Independentsoft.Pst (in Independentsoft.Pst.dll) Version: 1.2.900.17830
C#

    public class Stream : DirectoryEntry

VB

    Public Class Stream
    	Inherits DirectoryEntry

Inheritance
  Object DirectoryEntry Stream

## Remarks

Stream is analogous to a file system file. The parent object of a stream object must be a Storage object or the RootDirectoryEntry.

## Constructors

Stream | Initializes a new instance of the Stream class.
Stream(String) | Initializes a new instance of the Stream class and load data from the specified file.
Stream(String, Byte) | Initializes a new instance of the Stream class and load data from the specified buffer.
Stream(String, Stream) | Initializes a new instance of the Stream class and load data from the specified Stream.

## Properties

Buffer | Gets or sets streams data.
ClassId | Gets or sets class ID. (Inherited from DirectoryEntry)
CreatedTime | Gets creation time. (Inherited from DirectoryEntry)
LastModifiedTime | Gets last modified time. (Inherited from DirectoryEntry)
Name | Gets or sets name. (Inherited from DirectoryEntry)
Size | Gets size. (Inherited from DirectoryEntry)

## Methods

CompareTo | Compares this instance with the specified DirectoryEntry object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified DirectoryEntry. (Inherited from DirectoryEntry)
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetStream | Gets Stream to read data from this stream.
GetType | (Inherited from Object)
Load(String) | Loads data to this stream from the specified file.
Load(String, Byte) | Loads data to this stream from the specified buffer.
Load(String, Stream) | Loads data to this stream from the specified Stream.
MemberwiseClone | (Inherited from Object)
Save(Stream) | Saves data from this stream to the specified Stream.
Save(String) | Saves data from this stream to to the specified file.
ToString | (Inherited from Object)

## See Also

#### Reference

Independentsoft.IO.StructuredStorage Namespace