| Miner.Interop.Geodatabase Assembly > Miner.Interop Namespace > IMMLoginObject Interface : Login Method |
Returns a boolean value indicating whether the user has previously logged into the database. The parameter is True when ArcMap is initially opened. Once the user clicks the Login button on the ArcFM Solution toolbar, the parameter value changes to False. This indicates that the user has logged into another database.
'Declaration Function Login( _ ByVal vbInitialLogin As Boolean _ ) As Boolean
'Usage Dim instance As IMMLoginObject Dim vbInitialLogin As Boolean Dim value As Boolean value = instance.Login(vbInitialLogin)
bool Login( bool vbInitialLogin )
Returns a boolean value indicating whether the user has previously logged into the database. The parameter is True when ArcMap is initially opened. Once the user clicks the Login button on the ArcFM Solution toolbar, the parameter value changes to False. This indicates that the user has logged into another database.
Returns a boolean value indicating whether or not the user has logged into a different database.
The login method must provide a fairly comprehensive implementation. There are a number of things to consider:
You’ll have to use the SDEWorkspaceFactory class to open your login workspace. This class implements an interface called ISetDefaultConnectionInfo (see ArcObjects documentation), which contains a method named SetParameters. This method must be called and sent the appropriate parameters, depending on your login workspace.
Keep in mind that there are types of workspaces that will not accomodate an ArcFM system database. For example, ArcGIS coverage workspaces and shapefile workspaces will not support ArcFM system tables. Your custom login object will need to check for this.
Very importantly, a custom login object will need to test for the existence of the ArcFM system tables. Otherwise, your users stand the chance of logging into a database that isn’t really an ArcFM system database.
| Visual Basic | Copy Code |
|
|---|---|---|
|
||
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.