Api.JetReadFileInstance 方法

检索使用 JetOpenFileInstance (JET_INSTANCE、String、JET_HANDLE、Int64、Int64) 打开的文件的内容。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'Declaration
Public Shared Sub JetReadFileInstance ( _
    instance As JET_INSTANCE, _
    file As JET_HANDLE, _
    buffer As Byte(), _
    bufferSize As Integer, _
    <OutAttribute> ByRef bytesRead As Integer _
)
'Usage
Dim instance As JET_INSTANCE
Dim file As JET_HANDLE
Dim buffer As Byte()
Dim bufferSize As Integer
Dim bytesRead As IntegerApi.JetReadFileInstance(instance, _
    file, buffer, bufferSize, bytesRead)
public static void JetReadFileInstance(
    JET_INSTANCE instance,
    JET_HANDLE file,
    byte[] buffer,
    int bufferSize,
    out int bytesRead
)

参数

  • 缓冲区
    类型:[]

    要读取的缓冲区。

  • bytesRead
    类型: System.Int32

    返回读取到缓冲区中的数据量。

另请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间