Server2003Api.JetUpdate2 메서드

JetUpdate 함수는 테이블에 새 행을 삽입하거나 기존 행을 업데이트하는 등의 업데이트 작업을 수행합니다. 테이블 행 삭제는 JetDelete(JET_SESID, JET_TABLEID)를 호출하여 수행됩니다.

네임스페이스:Microsoft.Isam.Esent.Interop.Server2003
어셈블리: Microsoft.Isam.Esent.Interop(Microsoft.Isam.Esent.Interop.dll)

구문

'Declaration
Public Shared Sub JetUpdate2 ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    bookmark As Byte(), _
    bookmarkSize As Integer, _
    <OutAttribute> ByRef actualBookmarkSize As Integer, _
    grbit As UpdateGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim bookmark As Byte()
Dim bookmarkSize As Integer
Dim actualBookmarkSize As Integer
Dim grbit As UpdateGrbitServer2003Api.JetUpdate2(sesid, tableid, bookmark, _
    bookmarkSize, actualBookmarkSize, _
    grbit)
public static void JetUpdate2(
    JET_SESID sesid,
    JET_TABLEID tableid,
    byte[] bookmark,
    int bookmarkSize,
    out int actualBookmarkSize,
    UpdateGrbit grbit
)

매개 변수

  • 책갈피(bookmark)
    형식: []

    업데이트된 레코드의 책갈피를 반환합니다. null일 수 있습니다.

  • bookmarkSize
    형식: System.Int32

    책갈피 버퍼의 크기입니다.

  • actualBookmarkSize
    형식: System.Int32

    책갈피의 실제 크기를 반환합니다.

설명

JetUpdate는 삽입 또는 업데이트를 수행하는 마지막 단계입니다. 업데이트는 JetPrepareUpdate(JET_SESID, JET_TABLEID, JET_prep) 를 호출한 다음 JetSetColumn(JET_SESID, JET_TABLEID, JET_COLUMNID, [], Int32, SetColumnGrbit, JET_SETINFO) 을 한 번 이상 호출하여 레코드 상태를 설정하는 방식으로 시작됩니다. 마지막으로 JetUpdate2(JET_SESID, JET_TABLEID, [], Int32, Int32, UpdateGrbit)가 호출되어 업데이트 작업을 완료합니다. 인덱스는 JetUpdate에서만 업데이트되며 JetSetColumn 중에는 업데이트되지 않습니다.

추가 정보

참조

Server2003Api 클래스

Server2003Api 멤버

Microsoft.Isam.Esent.Interop.Server2003 네임스페이스