This document is archived and information here might be outdated.  Recommended version.


IWorkspaceFactory2.OpenFromString Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IWorkspaceFactory2.OpenFromString Method

Opens the workspace specified by a connection string.

[Visual Basic .NET]
Public Function OpenFromString ( _
    ByVal connectStr As String, _
    ByVal hWnd As Integer _
) As IWorkspace
[C#]
public IWorkspace OpenFromString (
    string connectStr,
    int hWnd
);
[C++]
HRESULT OpenFromString(
  BSTR connectStr,
  long hWnd,
  IWorkspace** Workspace
);
[C++]

Parameters connectStr [in] connectStr is a parameter of type BSTR hWnd [in] hWnd is a parameter of type long Workspace [out, retval]
Workspace is a parameter of type IWorkspace

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The connect string is a collection of name value pairs separated by a semicolon (;).

The "VERSION" property is case sensitive and the correct case must be used when entering the version property.

See Also

IWorkspaceFactory2 Interface

.NET Related Topics

Accessing raster workspaces | Connecting to geodatabases and databases