LockObject (Role Interface)

ms133293.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 the Role interface locks a role object to prevent multiple users from concurrently changing the object.

Applies To:clsDatabaseRole

Syntax

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

Parameter

  • object
    The object to lock.
  • LockType
    One of the lock types defined in the OlapLockTypes enumeration. Because a Role object has no dependent objects and cannot be processed, the only valid options for LockType are olapLockRead and olapLockWrite. For more information, see OlapLockTypes.
  • LockDescription
    A string containing the description of the lock, available to other applications attempting to obtain a lock.

Siehe auch

Verweis

OlapLockTypes
UnlockObject (Role Interface)
LockObject (MDStore Interface)

Hilfe und Informationen

Informationsquellen für SQL Server 2005