C# Class Rebel.Framework.Persistence.Model.IO.File

Inheritance: TypedEntity
Show file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
File ( ) : System
File ( HiveId id ) : System
File ( TypedEntity fromEntity ) : System
File ( string fileName, byte contentBytes ) : System

Creates a new file object with byte contents.

File ( string fileName, string textContent ) : System

Creates a new file object with string contents. textContent will be encoded as UTF32.

SetContentStreamFactory ( Stream>.Func streamFactory ) : void

Method Details

File() public method

public File ( ) : System
return System

File() public method

public File ( HiveId id ) : System
id HiveId
return System

File() public method

public File ( TypedEntity fromEntity ) : System
fromEntity TypedEntity
return System

File() public method

Creates a new file object with byte contents.
public File ( string fileName, byte contentBytes ) : System
fileName string
contentBytes byte
return System

File() public method

Creates a new file object with string contents. textContent will be encoded as UTF32.
public File ( string fileName, string textContent ) : System
fileName string
textContent string
return System

SetContentStreamFactory() public method

public SetContentStreamFactory ( Stream>.Func streamFactory ) : void
streamFactory Stream>.Func
return void