Miner.Geodatabase Namespace > SchemaLocker Class : ObtainExclusiveLock Method |
'Declaration
Public Function ObtainExclusiveLock( _ ByVal obj As System.Object _ ) As System.Boolean
'Usage
Dim instance As SchemaLocker Dim obj As System.Object Dim value As System.Boolean value = instance.ObtainExclusiveLock(obj)
public System.bool ObtainExclusiveLock( System.object obj )
public function ObtainExclusiveLock( obj: System.TObject ): System.Boolean;
public function ObtainExclusiveLock( obj : System.Object ) : System.boolean;
public: System.bool ObtainExclusiveLock( System.Object* obj )
public: System.bool ObtainExclusiveLock( System.Object^ obj )
using(var schemaLocker = new SchemaLocker()) { schemaLocker.ObtainExclusiveLock(objectClass); // modify schema of objectClass }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2