Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

checking exsiting file geodatabase.

$
0
0
I am using ARCObject SDK in visual studio 2010 and C#. I want to check if a file geodatabase exist in a given folder. i have sued following code to create a personal filegeodatabase or .gdb file .Here is my code:


IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactoryClass();

workspaceFactory.ContainsWorkspace(wrkspcpth, "MyMediaPlayer.gdb");

and now i want if this file exist it not re created. Any suggestion how to check if the a given geofiledatabase already exist.
regards
nadeem

Viewing all articles
Browse latest Browse all 1374

Trending Articles