ArcFM Responder Mobile Developer Guide
MinerRuntimeEnvironment Class
Members 






RuntimeEnvironment determines and provides access to the current process mode.

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.

Object Model
MinerRuntimeEnvironment Class
Syntax
'Declaration
 
<System.Runtime.InteropServices.ClassInterfaceAttribute(ClassInterfaceType.None)>
<System.Runtime.InteropServices.ProgIdAttribute("mmSystem.MMRuntimeEnvironment")>
<System.Runtime.InteropServices.ComVisibleAttribute(True)>
<System.Runtime.InteropServices.GuidAttribute("88682872-0689-4dbc-8D62-85FD0E65A580")>
Public Class MinerRuntimeEnvironment 
   Implements IMMRuntimeEnvironment 
'Usage
 
Dim instance As MinerRuntimeEnvironment
[System.Runtime.InteropServices.ClassInterface(ClassInterfaceType.None)]
[System.Runtime.InteropServices.ProgId("mmSystem.MMRuntimeEnvironment")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("88682872-0689-4dbc-8D62-85FD0E65A580")]
public class MinerRuntimeEnvironment : IMMRuntimeEnvironment  
public class MinerRuntimeEnvironment = class(IMMRuntimeEnvironment)
System.Runtime.InteropServices.ClassInterfaceAttribute(ClassInterfaceType.None)
System.Runtime.InteropServices.ProgIdAttribute("mmSystem.MMRuntimeEnvironment")
System.Runtime.InteropServices.ComVisibleAttribute()
System.Runtime.InteropServices.GuidAttribute("88682872-0689-4dbc-8D62-85FD0E65A580")
public class MinerRuntimeEnvironment implements IMMRuntimeEnvironment 
[System.Runtime.InteropServices.ClassInterface(ClassInterfaceType.None)]
[System.Runtime.InteropServices.ProgId("mmSystem.MMRuntimeEnvironment")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("88682872-0689-4dbc-8D62-85FD0E65A580")]
public __gc class MinerRuntimeEnvironment : public IMMRuntimeEnvironment  
[System.Runtime.InteropServices.ClassInterface(ClassInterfaceType.None)]
[System.Runtime.InteropServices.ProgId("mmSystem.MMRuntimeEnvironment")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("88682872-0689-4dbc-8D62-85FD0E65A580")]
public ref class MinerRuntimeEnvironment : public IMMRuntimeEnvironment  
Example
Copy Code
MinerRuntimeEnvironment.IsUserInterfaceSupported = true;
MinerRuntimeEnvironment.CurrentRuntimeMode = mmRuntimeMode.mmRuntimeModeEngineViewer;
Inheritance Hierarchy

System.Object
   Miner.MinerRuntimeEnvironment
      Miner.Framework.ArcGISRuntimeEnvironment

Requirements

See Also

Reference

MinerRuntimeEnvironment Members
Miner Namespace

Send Feedback