ArcObjects Library Reference (Framework)  

IApplication.OpenDocument Method

Opens a document in this application.

[Visual Basic .NET]
Public Sub OpenDocument ( _
    [ByVal path As String] _
)
[C#]
public void OpenDocument (
    string path
);
[C#]

Optional Values

path   Optional, default value of .

Product Availability

Available with ArcGIS Desktop.

Description

Path is a string representing the path and filename of the document to be opened. [Optional]

Remarks

If no Path is specified, the Open dialog is displayed.

Note, this method does not work in ArcCatalog.

See Also

IApplication Interface

.NET Samples

Recently used files—Command, MultiItem, and ComboBox (Code Files: RecentFilesCombo)