BlobWriter.WriteBytes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteBytes(Byte[], Int32, Int32)
public:
void WriteBytes(cli::array <System::Byte> ^ buffer, int start, int byteCount);
public void WriteBytes (byte[] buffer, int start, int byteCount);
member this.WriteBytes : byte[] * int * int -> unit
Public Sub WriteBytes (buffer As Byte(), start As Integer, byteCount As Integer)
參數
- buffer
- Byte[]
- start
- Int32
- byteCount
- Int32
例外狀況
buffer
為 null
。
start
和 byteCount
指定的範圍超出 buffer
的界限。
適用於
WriteBytes(Stream, Int32)
public:
int WriteBytes(System::IO::Stream ^ source, int byteCount);
public int WriteBytes (System.IO.Stream source, int byteCount);
member this.WriteBytes : System.IO.Stream * int -> int
Public Function WriteBytes (source As Stream, byteCount As Integer) As Integer
參數
- source
- Stream
- byteCount
- Int32
傳回
例外狀況
source
為 null
。
byteCount
為負。
適用於
WriteBytes(Byte*, Int32)
WriteBytes(ImmutableArray<Byte>, Int32, Int32)
public:
void WriteBytes(System::Collections::Immutable::ImmutableArray<System::Byte> buffer, int start, int byteCount);
public void WriteBytes (System.Collections.Immutable.ImmutableArray<byte> buffer, int start, int byteCount);
member this.WriteBytes : System.Collections.Immutable.ImmutableArray<byte> * int * int -> unit
Public Sub WriteBytes (buffer As ImmutableArray(Of Byte), start As Integer, byteCount As Integer)
參數
- buffer
- ImmutableArray<Byte>
- start
- Int32
- byteCount
- Int32
例外狀況
buffer
為 null
。
start
和 byteCount
指定的範圍超出 buffer
的界限。
適用於
WriteBytes(BlobBuilder)
public:
void WriteBytes(System::Reflection::Metadata::BlobBuilder ^ source);
public void WriteBytes (System.Reflection.Metadata.BlobBuilder source);
member this.WriteBytes : System.Reflection.Metadata.BlobBuilder -> unit
Public Sub WriteBytes (source As BlobBuilder)
參數
- source
- BlobBuilder
例外狀況
source
為 null
。
適用於
WriteBytes(ImmutableArray<Byte>)
public:
void WriteBytes(System::Collections::Immutable::ImmutableArray<System::Byte> buffer);
public void WriteBytes (System.Collections.Immutable.ImmutableArray<byte> buffer);
member this.WriteBytes : System.Collections.Immutable.ImmutableArray<byte> -> unit
Public Sub WriteBytes (buffer As ImmutableArray(Of Byte))
參數
- buffer
- ImmutableArray<Byte>
例外狀況
buffer
為 null
。
適用於
WriteBytes(Byte[])
public:
void WriteBytes(cli::array <System::Byte> ^ buffer);
public void WriteBytes (byte[] buffer);
member this.WriteBytes : byte[] -> unit
Public Sub WriteBytes (buffer As Byte())
參數
- buffer
- Byte[]
例外狀況
buffer
為 null
。