NodeContent.CreateImmediateWriteContent Method
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9147)
CreateImmediateWriteContent(Stream)
Method creates read/immediate write content from the given stream. Use this method when following is desired/acceptable behavior:
- Stream supports immediate writing to the file (e. g. File
Stream ). - SaveContent method in ReadWriteFileSystemProvider is NEVER called. All data are written immediately using the suitable
stream
write methods.
Following events are NOT raised in the File
Declaration
public static NodeContent CreateImmediateWriteContent(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Stream containing the content of the node. |
Returns
Type | Description |
---|---|
Node |
New read/immediate write content. |