ArcObjects Library Reference  (GeoDatabase)    

IWorkspaceFactory2.OpenFromString Method

Opens the workspace specified by a connection string.

[Visual Basic 6.0]
Function OpenFromString(
    ByVal connectStr As String, _
    ByVal hWnd As OLE_HANDLE _
) As IWorkspace
[Visual Basic .NET]
Public Function OpenFromString ( _
    ByVal connectStr As String, _
    ByVal hWnd As Integer _
) As IWorkspace
[C#]
public IWorkspace OpenFromString (
    string connectStr,
    int hWnd
);
[Java]
public IWorkspace openFromString (
    String connectStr,
    int hWnd
)
throws
    IOException,
    AutomationException
[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

Example

IWorkspaceFactory2 Example

 


Feedback Send feedback on this page