Freigeben über


LockObject (clsDataSource)

ms135566.note(de-de,SQL.90).gifHinweis:
  Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein.

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

Syntax

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

Parameter

  • 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.

Hinweise

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.

Siehe auch

Verweis

clsDataSource

Hilfe und Informationen

Informationsquellen für SQL Server 2005