Show / Hide Table of Contents

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.

System.Boolean lockVersion

value indicating whether the version specified in the connectionFile cannot be changed to another version of the geodatabase using GeodatabaseVersion or GeodatabaseVersion

Returns
Type Description
EnterpriseGeodatabaseWorkspace

A new instance of the EnterpriseGeodatabaseWorkspace

Exceptions
Type Condition
System.ArgumentNullException

id is null or empty.

System.ArgumentNullException

connectionFile is null or empty.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.8
.NET Framework100.1 - 200.8
In This Article
Back to top Copyright © 2022 Esri.