DataFile

Namespace: uModIO

Assembly: uMod.Core.dll

Inheritance Object DataFile

Implements IDataFile, IDataObject

Summary

Represents a data file

Properties

Name

Summary

Exists

Determines if file exists

Extension

Gets the file extension

Filename

Gets the filename

IsConfigFile

Gets whether or not file is a watched configuration file

IsLoaded

OnCreateObject

Create object event

OnRead

Read event

OnWrite

Write event

Path

Gets the path

Methods

Name

Summary

Delete ()

Delete file

FromString (String)

Deserialize data content from specified string

Load ()

Load file synchronously (not recommended)

LoadFile ()

Load data file asynchronously

Save ()

Save file synchronously (not recommended)

SaveFile ()

Save data file asynchronously

ToAttachment (String)

Converts data file to attachment

Static Methods

Name

Summary

Load<T> (String, Boolean)

Loads data from the specified file synchronously (not recommended)

Load<T> (IDataFile)

LoadAsync<T> (String, Boolean)

Loads data from the specified file asynchronously

Save<T> (IDataFile)