C# Class Microsoft.KtmIntegration.TransactedFile

Mostrar archivo Open project: beefarino/TxF

Public Methods

Method Description
Copy ( string sourceFileName, string destFileName ) : bool
Copy ( string sourceFileName, string destFileName, bool overwrite ) : bool
Delete ( string path ) : void
Exists ( string path ) : bool
Move ( string sourceFileName, string destFileName ) : bool
Open ( string path, FileMode mode, FileAccess access, FileShare share ) : FileStream

Private Methods

Method Description
TranslateFileAccess ( FileAccess access ) : NativeMethods.FileAccess
TranslateFileMode ( FileMode mode ) : NativeMethods.FileMode
TranslateFileShare ( FileShare share ) : NativeMethods.FileShare

Method Details

Copy() public static method

public static Copy ( string sourceFileName, string destFileName ) : bool
sourceFileName string
destFileName string
return bool

Copy() public static method

public static Copy ( string sourceFileName, string destFileName, bool overwrite ) : bool
sourceFileName string
destFileName string
overwrite bool
return bool

Delete() public static method

public static Delete ( string path ) : void
path string
return void

Exists() public static method

public static Exists ( string path ) : bool
path string
return bool

Move() public static method

public static Move ( string sourceFileName, string destFileName ) : bool
sourceFileName string
destFileName string
return bool

Open() public static method

public static Open ( string path, FileMode mode, FileAccess access, FileShare share ) : FileStream
path string
mode FileMode
access FileAccess
share FileShare
return System.IO.FileStream