UCOMIStream.Write(Byte[], Int32, IntPtr) 方法

定義

將指定的位元組數目寫入資料流物件中目前搜尋指標開始處。

public:
 void Write(cli::array <System::Byte> ^ pv, int cb, IntPtr pcbWritten);
public void Write (byte[] pv, int cb, IntPtr pcbWritten);
abstract member Write : byte[] * int * nativeint -> unit
Public Sub Write (pv As Byte(), cb As Integer, pcbWritten As IntPtr)

參數

pv
Byte[]

要將這個資料流寫入的緩衝區。

cb
Int32

要寫入資料流的位元組數目。

pcbWritten
IntPtr

nativeint

成功傳回時,包含寫入至資料流物件的實際位元組數目。 呼叫端可將這個指標設定為 null,在這種情況下,這個方法不會提供寫入的實際位元組數目。

備註

如需詳細資訊,請參閱 MSDN 文件庫中的現有檔 ISequentialStream::Write

適用於