共用方式為


LockObject (clsDataSource)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The LockObject method of an object of ClassType clsDataSource locks a data sourceobject to prevent actions of multiple users of the object from colliding.

語法

object.LockObject(ByVal LockType As OlapLockTypes, ByVal LockDescription As String)

參數

  • object
    The data source object to lock.

  • LockType
    One of the lock types defined in the OlapLockTypes enumeration. For more information, see OlapLockTypes.

  • LockDescription
    A string containing the description of the lock, available to other applications attempting to obtain a lock.

備註

It is sometimes possible for an application to request an additional lock on an already locked object. For example, other applications can request and receive an olapLockRead lock on an object already locked using the olapLockProcess lock.

請參閱

參考