Class FileInfoLiteDC
- Namespace
- SunamoDevCode._public.SunamoData.Data
- Assembly
- SunamoDevCode.dll
Lightweight file information class CZ: Odlehčená třída pro informace o souboru
public class FileInfoLiteDC
- Inheritance
-
FileInfoLiteDC
- Inherited Members
- Extension Methods
Constructors
FileInfoLiteDC()
Initializes a new instance of FileInfoLiteDC CZ: Inicializuje novou instanci FileInfoLiteDC
public FileInfoLiteDC()
FileInfoLiteDC(string, string, long)
Initializes a new instance of FileInfoLiteDC with specified values CZ: Inicializuje novou instanci FileInfoLiteDC se zadanými hodnotami
public FileInfoLiteDC(string directory, string fileName, long length)
Parameters
directorystringDirectory containing the file
fileNamestringName of the file
lengthlongSize of the file in bytes
Properties
Directory
Directory containing the file CZ: Adresář obsahující soubor
public string? Directory { get; set; }
Property Value
FileName
Gets the file name (alias for Name) CZ: Získá název souboru (alias pro Name)
public string FileName { get; }
Property Value
Length
Gets the file length (alias for Size) CZ: Získá délku souboru (alias pro Size)
public long Length { get; }
Property Value
Name
Name of the file with extension CZ: Název souboru s příponou
public string? Name { get; set; }
Property Value
Path
Full path to the file CZ: Plná cesta k souboru
public string? Path { get; set; }
Property Value
Size
Size of the file in bytes CZ: Velikost souboru v bajtech
public long Size { get; set; }
Property Value
Methods
GetFIL(FileInfo)
Creates FileInfoLiteDC from FileInfo instance CZ: Vytvoří FileInfoLiteDC z instance FileInfo
public static FileInfoLiteDC GetFIL(FileInfo fileInfo)
Parameters
fileInfoFileInfoFileInfo instance to convert
Returns
- FileInfoLiteDC
FileInfoLiteDC instance
GetFIL(string)
Creates FileInfoLiteDC from file path CZ: Vytvoří FileInfoLiteDC z cesty k souboru
public static FileInfoLiteDC GetFIL(string filePath)
Parameters
filePathstringPath to the file
Returns
- FileInfoLiteDC
FileInfoLiteDC instance