NodeContent Class
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9119)
Represents a content of a file.
Syntax
public sealed class NodeContent : IDisposable
Implements
Inherited Members
Properties
| Name | Description |
|---|---|
| IsDelayedWriteContent | Gets a value indicating whether the underlying stream of this instance is a 'delayed write' stream. |
| IsImmediateWriteContent | Gets a value indicating whether the underlying stream of this instance is an 'immediate write' stream. |
| IsReadOnly | 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 GetStream() method. |
| WasStreamClosedForcefully | 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 |
|---|---|
| CreateDelayedWriteContent(Stream) | 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 FileSystemNotifier: |
| CreateImmediateWriteContent(Stream) | 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 FileSystemNotifier: |
| CreateReadOnlyContent(Stream) | Method creates read only content from the given |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting resources. |
| GetStream() | Returns Stream with the content of the file. |