UCOMIStream 介面

定義

警告

此 API 現已淘汰。

請改用 IStreamUse IStream instead.

public interface class UCOMIStream
[System.Obsolete]
[System.Runtime.InteropServices.Guid("0000000c-0000-0000-c000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000000c-0000-0000-C000-000000000046")]
[System.Obsolete("Use System.Runtime.InteropServices.ComTypes.IStream instead. https://go.microsoft.com/fwlink/?linkid=14202", false)]
public interface UCOMIStream
type UCOMIStream = interface
Public Interface UCOMIStream
屬性

備註

如需詳細資訊,請參閱 MSDN library 的 com 子資料夾中的 IStreamISequentialStream 的現有檔。For more information, please see the existing documentation for IStream and ISequentialStream in the com subfolder of the MSDN library.

方法

Clone(UCOMIStream)

使用它自己的搜尋指標 (其參考與原始資料流相同的位元組),建立新的資料流物件。Creates a new stream object with its own seek pointer that references the same bytes as the original stream.

Commit(Int32)

確保對異動模式 (Transacted Mode) 中開啟的資料流物件的任何變更都會反映在父 (Parent) 儲存區中。Ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage.

CopyTo(UCOMIStream, Int64, IntPtr, IntPtr)

從資料流中的目前搜尋指標複製指定數目的位元組到另一個資料流中的目前搜尋指標。Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

LockRegion(Int64, Int64, Int32)

限制存取資料流中指定的位元組範圍。Restricts access to a specified range of bytes in the stream.

Read(Byte[], Int32, IntPtr)

在目前搜尋指標位置開始,從資料流物件讀取指定數目的位元組到記憶體中。Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.

Revert()

捨棄從上次 Commit(Int32) 呼叫後對異動資料流的所有變更。Discards all changes that have been made to a transacted stream since the last Commit(Int32) call.

Seek(Int64, Int32, IntPtr)

變更搜尋指標到相對於資料流開頭的新位置、到資料流結尾,或到目前的搜尋指標。Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.

SetSize(Int64)

變更資料流物件的大小。Changes the size of the stream object.

Stat(STATSTG, Int32)

擷取這個資料流的 STATSTG 結構。Retrieves the STATSTG structure for this stream.

UnlockRegion(Int64, Int64, Int32)

移除先前以 LockRegion(Int64, Int64, Int32) 限制的位元組範圍的存取限制。Removes the access restriction on a range of bytes previously restricted with LockRegion(Int64, Int64, Int32).

Write(Byte[], Int32, IntPtr)

在目前搜尋指標位置開始,將指定數目的位元組寫入資料流物件中。Writes a specified number of bytes into the stream object starting at the current seek pointer.

適用於