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,
  OLE_HANDLE hWnd,
  IWorkspace** Workspace
);
[C++]

Parameters

connectStr [in]   connectStr is a parameter of type BSTR hWnd [in]

  hWnd is a parameter of type OLE_HANDLE

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 (;).

See Also

IWorkspaceFactory2 Interface