ArcFM Solution Developer Guide
IsSameDatabase Method (IMMWorkspaceManager)






Connection properties of the first database as IWorkspace
Connection properties of the second database as IWorkspace
This method compares two workspaces by looking at their connection properties.
Syntax
'Declaration
 
Function IsSameDatabase( _
   ByVal pWksp1 As ESRI.ArcGIS.Geodatabase.IWorkspace, _
   ByVal pWksp2 As ESRI.ArcGIS.Geodatabase.IWorkspace _
) As System.Boolean
'Usage
 
Dim instance As IMMWorkspaceManager
Dim pWksp1 As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim pWksp2 As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim value As System.Boolean
 
value = instance.IsSameDatabase(pWksp1, pWksp2)
System.bool IsSameDatabase( 
   ESRI.ArcGIS.Geodatabase.IWorkspace pWksp1,
   ESRI.ArcGIS.Geodatabase.IWorkspace pWksp2
)
function IsSameDatabase( 
    pWksp1: ESRI.ArcGIS.Geodatabase.IWorkspace;
    pWksp2: ESRI.ArcGIS.Geodatabase.IWorkspace
): System.Boolean; 
function IsSameDatabase( 
   pWksp1 : ESRI.ArcGIS.Geodatabase.IWorkspace,
   pWksp2 : ESRI.ArcGIS.Geodatabase.IWorkspace
) : System.boolean;
System.bool IsSameDatabase( 
   ESRI.ArcGIS.Geodatabase.IWorkspace* pWksp1,
   ESRI.ArcGIS.Geodatabase.IWorkspace* pWksp2
) 
System.bool IsSameDatabase( 
   ESRI.ArcGIS.Geodatabase.IWorkspace^ pWksp1,
   ESRI.ArcGIS.Geodatabase.IWorkspace^ pWksp2
) 

Parameters

pWksp1
Connection properties of the first database as IWorkspace
pWksp2
Connection properties of the second database as IWorkspace

Return Value

Boolean
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMWorkspaceManager Interface
IMMWorkspaceManager Members

Send Feedback