Interface ICheckinFileOperations
Only public so we can access this during tests.
Namespace: SuperOffice.CRM.Documents
Assembly: SoDataBase.dll
Syntax
public interface ICheckinFileOperations
Methods
Copy(String, String, Boolean)
Copy the contents of the sourceFilename to the destinationFilename.
Declaration
void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type | Name | Description |
---|---|---|
String | sourceFileName | |
String | destinationFileName | |
Boolean | overwrite |
Delete(String)
Delete the file.
Declaration
void Delete(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName |
Exists(String)
Check if the file exists.
Declaration
bool Exists(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName |
Returns
Type | Description |
---|---|
Boolean | True if the file exists. |
Move(String, String)
Move the file from sourceFileName to destinationFileName
Declaration
void Move(string sourceFileName, string destinationFileName)
Parameters
Type | Name | Description |
---|---|---|
String | sourceFileName | |
String | destinationFileName |
Open(String, FileMode, FileAccess, FileShare)
Open the file in read-only.
Declaration
FileStream Open(string fileName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | |
FileMode | fileMode | |
FileAccess | fileAccess | |
FileShare | fileShare |
Returns
Type | Description |
---|---|
FileStream |
ReadAllText(String)
Read all text from the given fileName.
Declaration
string ReadAllText(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName |
Returns
Type | Description |
---|---|
String |
RemoveReadOnly(String)
Remove the read-only attribute on the given file.
Declaration
void RemoveReadOnly(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName |
SetReadOnly(String)
Set the read-only attribute on the given file.
Declaration
void SetReadOnly(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName |
WriteAllText(String, String)
Write all text to the fileName (overwrites the existing content).
Declaration
void WriteAllText(string fileName, string text)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | |
String | text |
Extension Methods
EnumUtil.MapEnums<From, To>(From)