IsolatedStorageFileStream.Write Method
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.
Write(ReadOnlySpan<Byte>) |
Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a read-only byte span. |
Write(Byte[], Int32, Int32) |
Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a byte array. |
- Source:
- IsolatedStorageFileStream.cs
- Source:
- IsolatedStorageFileStream.cs
- Source:
- IsolatedStorageFileStream.cs
Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a read-only byte span.
public:
override void Write(ReadOnlySpan<System::Byte> buffer);
public override void Write(ReadOnlySpan<byte> buffer);
override this.Write : ReadOnlySpan<byte> -> unit
Public Overrides Sub Write (buffer As ReadOnlySpan(Of Byte))
Parameters
- buffer
- ReadOnlySpan<Byte>
The read-only byte span from which to copy bytes to the current isolated storage file stream.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
- Source:
- IsolatedStorageFileStream.cs
- Source:
- IsolatedStorageFileStream.cs
- Source:
- IsolatedStorageFileStream.cs
Writes a block of bytes to the isolated storage file stream object using data read from a buffer consisting of a byte array.
public:
override void Write(cli::array <System::Byte> ^ buffer, int offset, int count);
public override void Write(byte[] buffer, int offset, int count);
override this.Write : byte[] * int * int -> unit
Public Overrides Sub Write (buffer As Byte(), offset As Integer, count As Integer)
Parameters
- buffer
- Byte[]
The byte array from which to copy bytes to the current isolated storage file stream.
- offset
- Int32
The byte offset in buffer
from which to begin.
- count
- Int32
The maximum number of bytes to write.
Exceptions
The write attempt exceeds the quota for the IsolatedStorageFileStream object.
Remarks
If the write operation is successful, the current position of the IsolatedStorageFileStream object is advanced by the number of bytes written. If an exception occurs, the current position of the IsolatedStorageFileStream object is unchanged.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: