バイト配列から読み取ったデータを使用して、 IsolatedStorageFileStream にバイトのブロックを書き込みます。
Overrides Public Sub Write( _
ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _)
[C#]
public override void Write(byte[] buffer,intoffset,intcount);
[C++]
public: void Write(unsigned charbuffer __gc[],intoffset,intcount);
[JScript]
public override function Write(
buffer : Byte[],offset : int,count : int);
パラメータ
- buffer
書き込むバッファ。 - offset
開始位置を示すバッファ内のバイト オフセット。 - count
書き込む最大バイト数。
例外
例外の種類 | 条件 |
---|---|
IsolatedStorageException | IsolatedStorageFileStream のクォータを超えて書き込もうとしました。 |
解説
offset パラメータは読み取りを開始する位置の buffer のバイトのオフセットを指定し、 count パラメータはこの IsolatedStorageFileStream に書き込むバイト数を指定します。書き込み操作が正常に終了した場合、 IsolatedStorageFileStream の現在位置は書き込んだバイト数だけ進みます。例外が発生した場合、 IsolatedStorageFileStream の現在位置は変更されません。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
IsolatedStorageFileStream クラス | IsolatedStorageFileStream メンバ | System.IO.IsolatedStorage 名前空間