Parameters
- path
- A valid path to a database connection file that ends with the .sde extension.
DatabaseConnectionFile
class.Exception | Description |
---|---|
System.ArgumentNullException | path is null. |
System.ArgumentException | The path in path does not end with the .sde extension. |
public async Task OpenEnterpriseGeodatabaseUsingSDEFilePath() { await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => { using (Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri("path\\to\\sde\\file\\sdefile.sde")))) { // Use the geodatabase. } }); }
Target Platforms: Windows 11, Windows 10, Windows 8.1