'Declaration
Public Shared Function OpenFileStream( _ ByVal fileName As String, _ ByVal creationMode As FileMode, _ ByVal fileAccess As FileAccess, _ ByVal fileShare As FileShare _ ) As FileStream
public static FileStream OpenFileStream( 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
Return Value
An open FileStream, or null upon failure.