Api.JetReadFileInstance 方法
擷取以 JetOpenFileInstance (JET_INSTANCE、String、JET_HANDLE、Int64、Int64) 開啟的檔案內容。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'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
)
參數
instance
類型: Microsoft.Isam.Esent.Interop.JET_INSTANCE要使用的實例。
檔案
類型: Microsoft.Isam.Esent.Interop.JET_HANDLE要讀取的檔案。
緩衝區
類型: []要讀取的緩衝區。
bufferSize
類型: System.Int32緩衝區的大小。
bytesRead
類型: System.Int32傳回讀取至緩衝區的資料量。
另請參閱
參考
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應