NativeFileIOOpenFileStream Method (String, FileMode, FileAccess, FileShare, Int32) |
Calls Win32 API CreateFile() function and encapsulates returned handle.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static FileStream OpenFileStream(
string FileName,
FileMode CreationDisposition,
FileAccess DesiredAccess,
FileShare ShareMode,
int BufferSize
)
Public Shared Function OpenFileStream (
FileName As String,
CreationDisposition As FileMode,
DesiredAccess As FileAccess,
ShareMode As FileShare,
BufferSize As Integer
) As FileStream
public:
static FileStream^ OpenFileStream(
String^ FileName,
FileMode CreationDisposition,
FileAccess DesiredAccess,
FileShare ShareMode,
int BufferSize
)
static member OpenFileStream :
FileName : string *
CreationDisposition : FileMode *
DesiredAccess : FileAccess *
ShareMode : FileShare *
BufferSize : int -> FileStream
Parameters
- FileName
- Type: SystemString
Name of file to open. - CreationDisposition
- Type: System.IOFileMode
Open/creation mode. - DesiredAccess
- Type: System.IOFileAccess
File access to request. - ShareMode
- Type: System.IOFileShare
Share mode to request. - BufferSize
- Type: SystemInt32
Buffer size to specify in constructor call to FileStream class.
Return Value
Type:
FileStreamSee Also