UCOMIStream 接口

定义

注意

Use System.Runtime.InteropServices.ComTypes.IStream instead. http://go.microsoft.com/fwlink/?linkid=14202

注意

现已弃用此 API。

请改用 IStream

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

注解

有关详细信息,请参阅 IStream ISequentialStream MSDN library 的 com 子文件夹中的和的现有文档。

方法

Clone(UCOMIStream)

创建具有自己的搜索指针的一个新的流对象,该指针引用与原始流相同的字节。

Commit(Int32)

确保对以事务模式打开的流对象所做的任何更改都能反映在父级存储中。

CopyTo(UCOMIStream, Int64, IntPtr, IntPtr)

将指定的字节数从流中的当前搜索指针复制到其他流中的当前搜索指针。

LockRegion(Int64, Int64, Int32)

限制对流中特定范围的字节的访问。

Read(Byte[], Int32, IntPtr)

将指定数目的字节从流对象读入到以当前搜索指针开始的内存。

Revert()

放弃自上一个 Commit(Int32) 调用后对事务流进行的所有更改。

Seek(Int64, Int32, IntPtr)

将搜索指针更改为相对于流开始、流结束或当前搜索指针的新位置。

SetSize(Int64)

更改流对象的大小。

Stat(STATSTG, Int32)

检索此流的 STATSTG 结构。

UnlockRegion(Int64, Int64, Int32)

移除对先前使用 LockRegion(Int64, Int64, Int32) 限制的字节范围的访问限制。

Write(Byte[], Int32, IntPtr)

将指定数目的字节写入以当前搜索指针开始的流对象。

适用于