NodeContent Class
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9147)
Represents a content of a file.
Syntax
public sealed class NodeContent : IDisposable
Implements
Inherited Members
Properties
Name | Description |
---|---|
Is |
Gets a value indicating whether the underlying stream of this instance is a 'delayed write' stream. |
Is |
Gets a value indicating whether the underlying stream of this instance is an 'immediate write' stream. |
Is |
Gets a value indicating whether the underlying stream of this instance is read only. |
Length | Gets the length in bytes of the Stream that is returned from the Get |
Was |
Returns a value indicating whether this node's stream was closed forcefully. Forceful close occurs if the stream is not gracefully closed by the consumer. |
Methods
Name | Description |
---|---|
Create |
Method creates read/delayed write content from the given stream. Use this method when following is desired/acceptable behavior:
Following events are raised in the File |
Create |
Method creates read/immediate write content from the given stream. Use this method when following is desired/acceptable behavior:
Following events are NOT raised in the File |
Create |
Method creates read only content from the given |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting resources. |
Get |
Returns Stream with the content of the file. |