This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceFactory2 Interface > IWorkspaceFactory2.OpenFromString Method (ArcObjects .NET 10.5 SDK) |
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
The connect string is a collection of name value pairs separated by a semicolon (;).