Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

FileStream Constructor

Initializes a new instance of the FileStream class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method FileStream(SafeFileHandle, FileAccess) Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission.
Public method FileStream(IntPtr, FileAccess) Obsolete. Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileStream(String, FileMode) Initializes a new instance of the FileStream class with the specified path and creation mode.
Public method FileStream(SafeFileHandle, FileAccess, Int32) Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission, and buffer size.
Public method FileStream(IntPtr, FileAccess, Boolean) Obsolete. Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission and FileStream instance ownership.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileStream(String, FileMode, FileAccess) Initializes a new instance of the FileStream class with the specified path, creation mode, and read/write permission.
Public method FileStream(SafeFileHandle, FileAccess, Int32, Boolean) Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission, buffer size, and synchronous or asynchronous state.
Public method FileStream(IntPtr, FileAccess, Boolean, Int32) Obsolete. Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission, FileStream instance ownership, and buffer size.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileStream(String, FileMode, FileAccess, FileShare) Initializes a new instance of the FileStream class with the specified path, creation mode, read/write permission, and sharing permission.
Public method FileStream(IntPtr, FileAccess, Boolean, Int32, Boolean) Obsolete. Initializes a new instance of the FileStream class for the specified file handle, with the specified read/write permission, FileStream instance ownership, buffer size, and synchronous or asynchronous state.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileStream(String, FileMode, FileAccess, FileShare, Int32) Initializes a new instance of the FileStream class with the specified path, creation mode, read/write and sharing permission, and buffer size.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean) Initializes a new instance of the FileStream class with the specified path, creation mode, read/write and sharing permission, buffer size, and synchronous or asynchronous state.
Public method FileStream(String, FileMode, FileAccess, FileShare, Int32, FileOptions) Initializes a new instance of the FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
Public method FileStream(String, FileMode, FileSystemRights, FileShare, Int32, FileOptions) Initializes a new instance of the FileStream class with the specified path, creation mode, access rights and sharing permission, the buffer size, and additional file options.
Public method FileStream(String, FileMode, FileSystemRights, FileShare, Int32, FileOptions, FileSecurity) Initializes a new instance of the FileStream class with the specified path, creation mode, access rights and sharing permission, the buffer size, additional file options, access control and audit security.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.