IDVBCMBatchEdit::lockedit

Note:

There is not an equivalent Info method.

Method Signatures

 

C\C++

HRESULT LockEdit(

long lWait)

VB

Public Sub LockEdit(

ByVal lWait As Long)

This method locks a batch on the behalf of the caller so that no other clients can modify the batch in any regards to editing (other clients can still release/start/remove the batch).

Return Values

S_OK - success

else - failed

Memory Allocation

none

Visual Basic Usage Example

Private Sub Button1_Click()
    Dim objBatchEdit As DVBCMBatchEdit
    Call GetBatchEditObject(objBatchEdit)
    Call objBatchEdit.LockEdit()
End Sub

Parameter Name

Purpose

lWait

Optional. Default = 30000. Time to wait for a server resource in milliseconds.