Interface IWorkspaceFactory2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that create and open workspaces and supply workspace factory information.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("D29CD15F-3014-11D4-8141-00C04F686238")]
public interface IWorkspaceFactory2 : IWorkspaceFactory

Remarks

The IWorkspaceFactory2 interface 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 ConnectionString property on IWorkspaceName2.

Properties

WorkspaceDescription[bool]

string WorkspaceDescription[bool plural] { get; }

Parameters

plural bool

Property Value

string

WorkspaceType

esriWorkspaceType WorkspaceType { get; }

Property Value

esriWorkspaceType

Methods

ContainsWorkspace(string, IFileNames)

bool ContainsWorkspace(string parentDirectory, IFileNames fileNames)

Parameters

parentDirectory string
fileNames IFileNames

Returns

bool

Copy(IWorkspaceName, string, out IWorkspaceName)

bool Copy(IWorkspaceName WorkspaceName, string destinationFolder, out IWorkspaceName workspaceNameCopy)

Parameters

WorkspaceName IWorkspaceName
destinationFolder string
workspaceNameCopy IWorkspaceName

Returns

bool

Create(string, string, IPropertySet, int)

IWorkspaceName Create(string parentDirectory, string Name, IPropertySet ConnectionProperties, int hWnd)

Parameters

parentDirectory string
Name string
ConnectionProperties IPropertySet
hWnd int

Returns

IWorkspaceName

GetClassID()

UID GetClassID()

Returns

UID

GetWorkspaceName(string, IFileNames)

IWorkspaceName GetWorkspaceName(string parentDirectory, IFileNames fileNames)

Parameters

parentDirectory string
fileNames IFileNames

Returns

IWorkspaceName

IsWorkspace(string)

bool IsWorkspace(string fileName)

Parameters

fileName string

Returns

bool

Move(IWorkspaceName, string)

bool Move(IWorkspaceName WorkspaceName, string destinationFolder)

Parameters

WorkspaceName IWorkspaceName
destinationFolder string

Returns

bool

Open(IPropertySet, int)

IWorkspace Open(IPropertySet ConnectionProperties, int hWnd)

Parameters

ConnectionProperties IPropertySet
hWnd int

Returns

IWorkspace

OpenFromFile(string, int)

IWorkspace OpenFromFile(string fileName, int hWnd)

Parameters

fileName string
hWnd int

Returns

IWorkspace

OpenFromString(string, int)

Opens the workspace specified by a connection string.

IWorkspace OpenFromString(string connectStr, int hWnd)

Parameters

connectStr string
hWnd int

Returns

IWorkspace

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.

ReadConnectionPropertiesFromFile(string)

IPropertySet ReadConnectionPropertiesFromFile(string fileName)

Parameters

fileName string

Returns

IPropertySet