mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 02:37:49 +02:00
IFileSystem: Added exception documentation
This commit is contained in:
parent
3baf91238d
commit
f1965ec7ca
1 changed files with 48 additions and 0 deletions
|
@ -6,14 +6,60 @@ namespace Utilities
|
||||||
{
|
{
|
||||||
public interface IFileSystem
|
public interface IFileSystem
|
||||||
{
|
{
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
FileSystemEntry GetEntry(string path);
|
FileSystemEntry GetEntry(string path);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
FileSystemEntry CreateFile(string path);
|
FileSystemEntry CreateFile(string path);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
FileSystemEntry CreateDirectory(string path);
|
FileSystemEntry CreateDirectory(string path);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.FileNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
void Move(string source, string destination);
|
void Move(string source, string destination);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.FileNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
void Delete(string path);
|
void Delete(string path);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
List<FileSystemEntry> ListEntriesInDirectory(string path);
|
List<FileSystemEntry> ListEntriesInDirectory(string path);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.DirectoryNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.FileNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
Stream OpenFile(string path, FileMode mode, FileAccess access, FileShare share);
|
Stream OpenFile(string path, FileMode mode, FileAccess access, FileShare share);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.FileNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
void SetAttributes(string path, bool? isHidden, bool? isReadonly, bool? isArchived);
|
void SetAttributes(string path, bool? isHidden, bool? isReadonly, bool? isArchived);
|
||||||
|
|
||||||
|
/// <exception cref="System.ArgumentException"></exception>
|
||||||
|
/// <exception cref="System.IO.FileNotFoundException"></exception>
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
|
/// <exception cref="System.UnauthorizedAccessException"></exception>
|
||||||
void SetDates(string path, DateTime? creationDT, DateTime? lastWriteDT, DateTime? lastAccessDT);
|
void SetDates(string path, DateTime? creationDT, DateTime? lastWriteDT, DateTime? lastAccessDT);
|
||||||
|
|
||||||
string Name
|
string Name
|
||||||
|
@ -21,11 +67,13 @@ namespace Utilities
|
||||||
get;
|
get;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
long Size
|
long Size
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <exception cref="System.IO.IOException"></exception>
|
||||||
long FreeSpace
|
long FreeSpace
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
|
|
Loading…
Add table
Reference in a new issue