ArcFM Desktop Developer Guide
MinerRuntimeEnvironment Class
Members 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Product Availability
ArcFM Desktop and ArcFM Engine
Required Licenses
ArcFM, Designer, ArcFM Viewer, ArcFM Engine, ArcFM Engine Editor, or ArcFM Viewer for ArcGIS Engine
.NET Assembly
Miner.System.dll

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
 
<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  
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 Comment