NativeFileIOOpenFileStream Method (String, FileMode, FileAccess, FileShare) |
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
)
Public Shared Function OpenFileStream (
FileName As String,
CreationDisposition As FileMode,
DesiredAccess As FileAccess,
ShareMode As FileShare
) As FileStream
public:
static FileStream^ OpenFileStream(
String^ FileName,
FileMode CreationDisposition,
FileAccess DesiredAccess,
FileShare ShareMode
)
static member OpenFileStream :
FileName : string *
CreationDisposition : FileMode *
DesiredAccess : FileAccess *
ShareMode : FileShare -> 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.
Return Value
Type:
FileStreamSee Also