IsolatedStorageFileStream.Write 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.
Overloads
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. |
Write(ReadOnlySpan<Byte>)
- 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
Write(Byte[], Int32, Int32)
- 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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈