Provides access to members that create and open workspaces and supply workspace factory information.
Members
Name | Description | |
---|---|---|
![]() | ContainsWorkspace | Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace. |
![]() | Copy | Copies a workspace to the specified destination folder. |
![]() | Create | Creates a new workspace specified by the directory, file name, and connection properties. |
![]() | GetClassID | The class ID of the WorkspaceFactory. |
![]() | GetWorkspaceName | Retrieves the workspace name of a workspace from the given list of file names. |
![]() | IsWorkspace | True if the specified file identifies a workspace supported by the workspace factory. |
![]() | Move | Moves a workspace to the specified destination folder. |
![]() | Open | Opens the workspace specified by the connection properties. |
![]() | OpenFromFile | Opens the workspace specified by the given file name. |
![]() | OpenFromString | Opens the workspace specified by a connection string. |
![]() | ReadConnectionPropertiesFromFile | The connection properties from the specified file. |
![]() | WorkspaceDescription | A singular or plural description of the type of workspace the workspace factory opens/creates. |
![]() | WorkspaceType | The type of workspace the workspace factory opens/creates. |
IWorkspaceFactory2.OpenFromString Method
Opens the workspace specified by a connection string.
Public Function OpenFromString ( _ ByVal connectStr As String, _ ByVal hWnd As Integer _ ) As IWorkspace
public IWorkspace OpenFromString ( string connectStr, int hWnd );
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.
Inherited Interfaces
Interfaces | Description |
---|---|
IWorkspaceFactory | Provides access to members that create and open workspaces and supply workspace factory information. |
Classes that implement IWorkspaceFactory2
Remarks
The IWorkspaceFactory2interface was added to allow opening of a Workspace using a connection string which describes the connection properties for the workspace. You can get a workspace's connection string using the ConnectionStringproperty on IWorkspaceName2.