Show / Hide Table of Contents

Method CreateFromConnectionString

CreateFromConnectionString(String, String, Boolean)

Initializes a new instance of the EnterpriseGeodatabaseWorkspace class with specified connection string.

Declaration
public static EnterpriseGeodatabaseWorkspace CreateFromConnectionString(string id, string connectionString, bool lockVersion = true)
Parameters
Type Name Description
System.String id

the id of the workspace.

System.String connectionString

the connection string.

System.Boolean lockVersion

value indicating whether the version specified in the connectionString 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

connectionString 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.