ArcFM Desktop Developer Guide
ObtainExclusiveLock Method
Example 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

The object to be locked.
Obtains an exclusive lock on a database resource.
Syntax
'Declaration
 
Public Function ObtainExclusiveLock( _
   ByVal obj As Object _
) As Boolean
'Usage
 
Dim instance As SchemaLocker
Dim obj As Object
Dim value As Boolean
 
value = instance.ObtainExclusiveLock(obj)
public bool ObtainExclusiveLock( 
   object obj
)

Parameters

obj
The object to be locked.

Return Value

True if exclusive lock succeeds, false otherwise.
Example
This example shows the typical usage of ObtainExclusiveLock
using(var schemaLocker = new SchemaLocker())
{   
     schemaLocker.ObtainExclusiveLock(objectClass);
     // modify schema of objectClass
}
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

SchemaLocker Class
SchemaLocker Members

 

 


Send Comment