ArcGIS Pro 2.9 API Reference Guide
OfflineMapsLocation Property

ArcGIS.Desktop.Core Namespace > DownloadOptions Class : OfflineMapsLocation Property
Gets and sets the folder location for downloading map content that is taken offline
Syntax
public string OfflineMapsLocation {get; set;}
Public Property OfflineMapsLocation As String
Remarks
Setting an offline maps location automatically sets the AskForOfflineMapsLocation and OfflineMapsToProjectLocation properties to false.
If the folder does not exist, the application attempts to create it when the value is assigned. Attempting to assign a folder location to which the current user does not have write permission will fail. Set to empty string to revert to the application default.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

DownloadOptions Class
DownloadOptions Members