IsolatedStorageFileStream.Write 方法

定义

重载

名称 说明
Write(ReadOnlySpan<Byte>)

使用从包含只读字节范围的缓冲区读取的数据,将字节块写入隔离存储文件流对象。

Write(Byte[], Int32, Int32)

使用从包含字节数组的缓冲区读取的数据,将字节块写入隔离存储文件流对象。

Write(ReadOnlySpan<Byte>)

Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs

使用从包含只读字节范围的缓冲区读取的数据,将字节块写入隔离存储文件流对象。

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>

从中将字节复制到当前隔离存储文件流的只读字节范围。

适用于

Write(Byte[], Int32, Int32)

Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs
Source:
IsolatedStorageFileStream.cs

使用从包含字节数组的缓冲区读取的数据,将字节块写入隔离存储文件流对象。

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[]

要从中将字节复制到当前隔离存储文件流的字节数组。

offset
Int32

要从中开始的字节偏移量 buffer

count
Int32

要写入的最大字节数。

例外

写入尝试超过对象的配额 IsolatedStorageFileStream

注解

如果写入操作成功,则 IsolatedStorageFileStream 对象的当前位置由写入的字节数进行高级。 如果发生异常,则 IsolatedStorageFileStream 对象的当前位置保持不变。

适用于