UCOMIStream UCOMIStream UCOMIStream UCOMIStream Interface

定义

警告

此 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. http://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) Clone(UCOMIStream) Clone(UCOMIStream) Clone(UCOMIStream)

创建一个新的流对象,该流对象具有自己的查找指针且该指针与原始流引用相同的字节。Creates a new stream object with its own seek pointer that references the same bytes as the original stream.

Commit(Int32) Commit(Int32) Commit(Int32) Commit(Int32)

确保对以事务模式打开的流对象所做的任何更改都能反映在父级存储中。Ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage.

CopyTo(UCOMIStream, Int64, IntPtr, IntPtr) CopyTo(UCOMIStream, Int64, IntPtr, IntPtr) CopyTo(UCOMIStream, Int64, IntPtr, IntPtr) 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) LockRegion(Int64, Int64, Int32) LockRegion(Int64, Int64, Int32) LockRegion(Int64, Int64, Int32)

限制对流中指定字节范围的访问。Restricts access to a specified range of bytes in the stream.

Read(Byte[], Int32, IntPtr) Read(Byte[], Int32, IntPtr) Read(Byte[], Int32, IntPtr) Read(Byte[], Int32, IntPtr)

将指定的字节数从流对象读入从当前查找指针开始的内存。Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.

Revert() Revert() Revert() Revert()

放弃自从上次 Commit(Int32) 调用以来对事务处理流所做的所有更改。Discards all changes that have been made to a transacted stream since the last Commit(Int32) call.

Seek(Int64, Int32, IntPtr) Seek(Int64, Int32, IntPtr) Seek(Int64, Int32, IntPtr) 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) SetSize(Int64) SetSize(Int64) SetSize(Int64)

更改流对象的大小。Changes the size of the stream object.

Stat(STATSTG, Int32) Stat(STATSTG, Int32) Stat(STATSTG, Int32) Stat(STATSTG, Int32)

检索此流的 STATSTG 结构。Retrieves the STATSTG structure for this stream.

UnlockRegion(Int64, Int64, Int32) UnlockRegion(Int64, Int64, Int32) UnlockRegion(Int64, Int64, Int32) 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) Write(Byte[], Int32, IntPtr) Write(Byte[], Int32, IntPtr) Write(Byte[], Int32, IntPtr)

将指定数量的字节写入从当前查找指针开始的流对象。Writes a specified number of bytes into the stream object starting at the current seek pointer.

适用于