| 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.
'DeclarationFunction Login( _ ByVal vbInitialLogin As System.Boolean _ ) As System.Boolean
'UsageDim instance As IMMLoginObject Dim vbInitialLogin As System.Boolean Dim value As System.Boolean value = instance.Login(vbInitialLogin)
System.bool Login( System.bool vbInitialLogin )
function Login(
vbInitialLogin: System.Boolean
): System.Boolean;
function Login( vbInitialLogin : System.boolean ) : System.boolean;
System.bool Login( System.bool vbInitialLogin )
System.bool Login( System.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 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