Craig's Utility Library
4.0 Beta
|
Basic Resource file class More...
Public Member Functions | |
ResourceFile () | |
Constructor More... | |
ResourceFile (string Path, string UserName="", string Password="", string Domain="") | |
Constructor More... | |
Public Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.FileBase< string, ResourceFile > | |
object | Clone () |
Clones the file object More... | |
int | CompareTo (IFile other) |
Compares this to another file More... | |
int | CompareTo (object obj) |
Compares this object to another object More... | |
abstract IFile | CopyTo (IDirectory Directory, bool Overwrite) |
Copies the file to another directory More... | |
abstract string | Delete () |
Deletes the file More... | |
override bool | Equals (object obj) |
Determines if the objects are equal More... | |
bool | Equals (IFile other) |
Determines if the files are equal More... | |
override int | GetHashCode () |
Gets the hash code for the file More... | |
abstract void | MoveTo (IDirectory Directory) |
Moves the file to a new directory More... | |
abstract string | Read () |
Reads the file in as a string More... | |
abstract byte[] | ReadBinary () |
Reads a file as binary More... | |
abstract void | Rename (string NewName) |
Renames the file More... | |
override string | ToString () |
Returns the name of the file More... | |
abstract string | Write (string Content, System.IO.FileMode Mode=FileMode.Create, Encoding Encoding=null) |
Writes content to the file More... | |
abstract byte[] | Write (byte[] Content, System.IO.FileMode Mode=FileMode.Create) |
Writes content to the file More... | |
Properties | |
override DateTime | Accessed [get] |
Time accessed (Just returns now) More... | |
override DateTime | Created [get] |
Time created (Just returns now) More... | |
Properties inherited from Utilities.IO.FileSystem.BaseClasses.FileBase< string, ResourceFile > | |
abstract DateTime | Accessed [get] |
Last time accessed (UTC time) More... | |
abstract DateTime | Created [get] |
Time created (UTC time) More... | |
abstract IDirectory | Directory [get] |
Directory the file is within More... | |
abstract bool | Exists [get] |
Does the file exist? More... | |
abstract string | Extension [get] |
File extension More... | |
abstract string | FullName [get] |
Full path More... | |
abstract long | Length [get] |
Size of the file More... | |
abstract DateTime | Modified [get] |
Time modified (UTC time) More... | |
abstract string | Name [get] |
Name of the file More... | |
string | Domain [get, set] |
Domain of the user More... | |
InternalFileType | InternalFile [get, set] |
Internal directory More... | |
string | Password [get, set] |
Password More... | |
string | UserName [get, set] |
User name used More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.FileBase< string, ResourceFile > | |
static implicit | operator byte[] (FileBase< InternalFileType, FileType > File) |
Reads the file and converts it to a byte array More... | |
static implicit | operator string (FileBase< InternalFileType, FileType > File) |
Reads the file and converts it to a string More... | |
static bool | operator!= (FileBase< InternalFileType, FileType > File1, IFile File2) |
Determines if two directories are not equal More... | |
static bool | operator< (FileBase< InternalFileType, FileType > File1, IFile File2) |
Less than More... | |
static bool | operator<= (FileBase< InternalFileType, FileType > File1, IFile File2) |
Less than or equal More... | |
static bool | operator== (FileBase< InternalFileType, FileType > File1, IFile File2) |
Determines if two directories are equal More... | |
static bool | operator> (FileBase< InternalFileType, FileType > File1, IFile File2) |
Greater than More... | |
static bool | operator>= (FileBase< InternalFileType, FileType > File1, IFile File2) |
Greater than or equal More... | |
Protected Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.FileBase< string, ResourceFile > | |
FileBase () | |
Constructor More... | |
FileBase (InternalFileType InternalFile) | |
Constructor More... | |
FileBase (InternalFileType InternalFile, string UserName, string Password, string Domain) | |
Constructor More... | |
Basic Resource file class
Definition at line 37 of file ResourceFile.cs.
Utilities.IO.FileSystem.Default.ResourceFile.ResourceFile | ( | ) |
Constructor
Definition at line 42 of file ResourceFile.cs.
Utilities.IO.FileSystem.Default.ResourceFile.ResourceFile | ( | string | Path, |
string | UserName = "" , |
||
string | Password = "" , |
||
string | Domain = "" |
||
) |
Constructor
Path | Path to the file |
Domain | Domain of the user (optional) |
Password | Password to be used to access the directory (optional) |
UserName | User name to be used to access the directory (optional) |
Definition at line 53 of file ResourceFile.cs.
|
get |
Time accessed (Just returns now)
Definition at line 62 of file ResourceFile.cs.
|
get |
Time created (Just returns now)
Definition at line 70 of file ResourceFile.cs.