StreamInfo.GetStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens and returns the I/O stream for the Package root.
Overloads
GetStream() |
Returns a stream opened in a default FileMode and FileAccess. |
GetStream(FileMode) |
Returns an I/O stream opened in a specified FileMode. |
GetStream(FileMode, FileAccess) |
Returns an I/O stream opened in a specified FileMode and with a given FileAccess. |
GetStream()
Returns a stream opened in a default FileMode and FileAccess.
public:
System::IO::Stream ^ GetStream();
public System.IO.Stream GetStream ();
member this.GetStream : unit -> System.IO.Stream
Public Function GetStream () As Stream
Returns
The I/O stream opened in a default Package root FileMode and FileAccess.
Remarks
This GetStream method (without parameters), opens the stream in file mode OpenOrCreate with the default storage root FileAccess.
See also
Applies to
GetStream(FileMode)
Returns an I/O stream opened in a specified FileMode.
public:
System::IO::Stream ^ GetStream(System::IO::FileMode mode);
public System.IO.Stream GetStream (System.IO.FileMode mode);
member this.GetStream : System.IO.FileMode -> System.IO.Stream
Public Function GetStream (mode As FileMode) As Stream
Parameters
- mode
- FileMode
The file mode in which to open the stream.
Returns
The stream opened in the specified file mode
.
Remarks
This GetStream method opens the stream with the default storage root FileAccess.
See also
Applies to
GetStream(FileMode, FileAccess)
Returns an I/O stream opened in a specified FileMode and with a given FileAccess.
public:
System::IO::Stream ^ GetStream(System::IO::FileMode mode, System::IO::FileAccess access);
public System.IO.Stream GetStream (System.IO.FileMode mode, System.IO.FileAccess access);
member this.GetStream : System.IO.FileMode * System.IO.FileAccess -> System.IO.Stream
Public Function GetStream (mode As FileMode, access As FileAccess) As Stream
Parameters
- mode
- FileMode
The file mode in which to open the stream.
- access
- FileAccess
The file access mode in which to read or write to the stream.
Returns
The I/O stream opened in the specified FileMode and with a given FileAccess.