That depends on what kind of connection you are using.
If you are using the LocalNativeConnection, you are wrapping the
Mg API, with a higher level abstraction.

When using the LocalNativeConnection, the MaestroAPI is calling the
same dll functions as you would normally do.
So yes, the two fragments of code offer the same functionality.
You don't have to use the above one, if you are using the MaestroAPI,
but if there is a function that is missing in the MaestroAPI, you can
use both with no problems.

Regards, Kenneth Skovhede, GEOGRAF A/S


clarkie342 skrev:
I have couple of questions regarding use of Maestro API
when using Maestro API, am I technically replacing MGE Web Tier API?
Should I be replacing
        MapGuideApi.MgInitializeWebTier(CommonUtilities.configPath)
        Dim userInfo As MgUserInformation = New MgUserInformation(session)
        Dim Mysiteconn As MgSiteConnection = New MgSiteConnection()
        Mysiteconn.Open(userInfo)

with

conn = New LocalNativeConnection("webconfig.ini", username, password, "en")
or do I still need both?

Thanks.

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to