Miner.System Assembly > Miner Namespace : MinerRuntimeEnvironment Class |
MinerRuntimeEnvironment detects the runtime mode using the process name (e.g., ArcCatalog, ArcMap, ArcEngine). If it can't identify a runtime mode, it returns the default value from the mmRuntimeMode enumeration: mmRuntimeModeUnknown.
When writing a custom application, you will need to manually set the runtime mode using a value from the mmRuntimeMode enumeration. If your custom application has a user interface (e.g., message box, form), set the runtime mode to one that is more conducive to user interfaces (e.g., mmRuntimeModeArcEngine, mmRuntimeModeArcMap). If the custom application has no user interface, then the mmRuntimeModeServer mode is more appropriate.
Runtime mode is automatically set for ArcGIS and Schneider Electric applications and does not need to be set manually.
'Declaration <ClassInterfaceAttribute(ClassInterfaceType.None)> <GuidAttribute("88682872-0689-4dbc-8D62-85FD0E65A580")> <ComVisibleAttribute(True)> <ProgIdAttribute("mmSystem.MMRuntimeEnvironment")> Public Class MinerRuntimeEnvironment Implements IMMRuntimeEnvironment
'Usage Dim instance As MinerRuntimeEnvironment
[ClassInterface(ClassInterfaceType.None)] [Guid("88682872-0689-4dbc-8D62-85FD0E65A580")] [ComVisible(true)] [ProgId("mmSystem.MMRuntimeEnvironment")] public class MinerRuntimeEnvironment : IMMRuntimeEnvironment
Copy Code
|
|
---|---|
MinerRuntimeEnvironment.IsUserInterfaceSupported = true;
MinerRuntimeEnvironment.CurrentRuntimeMode = mmRuntimeMode.mmRuntimeModeEngineViewer;
|
System.Object
Miner.MinerRuntimeEnvironment
Miner.Framework.ArcGISRuntimeEnvironment