Method CreateFromConnectionFile
CreateFromConnectionFile(String, String, Boolean)
Initializes a new instance of the EnterpriseGeodatabaseWorkspace class with specified path to an ArcSDE connection file.
Declaration
public static EnterpriseGeodatabaseWorkspace CreateFromConnectionFile(string id, string connectionFile, bool lockVersion = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | the id of the workspace. |
| System.String | connectionFile | the path to an ArcSDE connection file. |
| Boolean | lockVersion | value indicating whether the version specified in the |
Returns
| Type | Description |
|---|---|
| EnterpriseGeodatabaseWorkspace | A new instance of the EnterpriseGeodatabaseWorkspace |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |