Share via


IsolatedStorageFileStream.Write 方法

定義

多載

Write(ReadOnlySpan<Byte>)

使用讀取自緩衝區 (由唯讀位元組範圍組成) 的資料,將位元組區塊寫入至隔離儲存區 (Isolated Storage) 檔案資料流物件。

Write(Byte[], Int32, Int32)

使用讀取自緩衝區 (由位元組陣列組成) 的資料,將位元組區塊寫入至隔離儲存區 (Isolated Storage) 檔案資料流物件。

Write(ReadOnlySpan<Byte>)

來源:
IsolatedStorageFileStream.cs
來源:
IsolatedStorageFileStream.cs
來源:
IsolatedStorageFileStream.cs

使用讀取自緩衝區 (由唯讀位元組範圍組成) 的資料,將位元組區塊寫入至隔離儲存區 (Isolated Storage) 檔案資料流物件。

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))

參數

buffer
ReadOnlySpan<Byte>

要從中將位元組複製到目前隔離儲存區 (Isolated Storage) 檔案資料流的唯讀位元組範圍。

適用於

Write(Byte[], Int32, Int32)

來源:
IsolatedStorageFileStream.cs
來源:
IsolatedStorageFileStream.cs
來源:
IsolatedStorageFileStream.cs

使用讀取自緩衝區 (由位元組陣列組成) 的資料,將位元組區塊寫入至隔離儲存區 (Isolated Storage) 檔案資料流物件。

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)

參數

buffer
Byte[]

要從中將位元組複製到目前隔離儲存區 (Isolated Storage) 檔案資料流的位元組陣列。

offset
Int32

buffer 中的位元組位移,即開始的位置。

count
Int32

寫入的最大位元組數。

例外狀況

寫入嘗試超過 IsolatedStorageFileStream 物件的配額。

備註

如果寫入作業成功,則物件的目前位置 IsolatedStorageFileStream 會由寫入的位元元組數目進階。 如果發生例外狀況,物件的目前位置不會 IsolatedStorageFileStream 變更。

適用於