Loads the map document (.nmf) at the specified path into the application taking into account whether application-driven prompts should be shown.

Namespace:  ESRI.ArcGISExplorer.Application

Assembly:  ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public static void LoadDocument(
	string path,
	bool showPrompts
)
Visual Basic (Declaration)
Public Shared Sub LoadDocument ( _
	path As String, _
	showPrompts As Boolean _
)

Parameters

path
Type: System..::.String

The file system path to the .nmf file to be loaded.
showPrompts
Type: System..::.Boolean

trueTruetruetrue (True in Visual Basic) to show application-driven dialogs; otherwise, falseFalsefalsefalse (False in Visual Basic) to suppress them.

Remarks

There are a number of application-driven prompts that may be shown to a user when opening a map document. This method currently provides the option to suppress the following:

  • The save prompt is shown if there are unsaved changes to the current map document (i.e. IsDocumentDirty property is trueTruetruetrue (True in Visual Basic). Suppressing this prompt will mean that any changes to the current document will be lost.
  • The authentication prompt is shown if the document being loaded contains secure services that require authentication information (e.g. username/password) to be supplied by the user. Suppressing this prompt means that the affected layers will not be connected but the document will still open.

Version Information: This method is supported from version 2.0.0.1500.

See Also