ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Catalog Namespace / ItemDialog Class / InitialLocation Property
Example

In This Topic
    InitialLocation Property
    In This Topic
    Gets or sets the initial location to display in the Browse dialog box.
    Syntax
    public string InitialLocation {get; set;}
    Public Property InitialLocation As String
    Example
    OpenItemDialog
    /// Adds a single item to a map
    OpenItemDialog addToMapDialog = new OpenItemDialog()
    {
      Title = "Add To Map",
      InitialLocation = @"C:\Data\NewYork\Counties\Erie\Streets",
      Filter = ItemFilters.Composite_AddToMap
    };
    
    SaveItemDialog
    SaveItemDialog saveLayerFileDialog = new SaveItemDialog()
    {
      Title = "Save Layer File",
      InitialLocation = @"C:\Data\ProLayers\Geographic\Streets",
      Filter = ItemFilters.Files_All
    };
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also