BlobBuilder.TryWriteBytes(Stream, Int32) 方法

定义

尝试将一个字节序列写入生成器。 返回值显示已成功写入的字节数。

public:
 int TryWriteBytes(System::IO::Stream ^ source, int byteCount);
public int TryWriteBytes (System.IO.Stream source, int byteCount);
member this.TryWriteBytes : System.IO.Stream * int -> int
Public Function TryWriteBytes (source As Stream, byteCount As Integer) As Integer

参数

source
Stream
byteCount
Int32

返回

source 成功写入的字节数。

例外

sourcenull

byteCount 为负数。

此生成器不可写入;它已与另一个生成器链接。

适用于