'Declaration
Public Shared Function GetFileLock( _ ByVal fileName As String, _ ByVal creationMode As FileMode, _ ByVal fileAccess As FileAccess, _ ByVal fileShare As FileShare _ ) As FileLock
public static FileLock GetFileLock( string fileName, FileMode creationMode, FileAccess fileAccess, FileShare fileShare )
Parameters
- fileName
- The full-path file name to create or open.
- creationMode
- An action to take on files that exist and do not exist
- fileAccess
- Desired access to the object, which can be read, write, or both
- fileShare
- The sharing mode of an object, which can be read, write, both, or none