ערוך

שתף באמצעות


IsolatedStorageFileStream.Write Method

Definition

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