checking exsiting file geodatabase.

Discussion created by nqazi on May 28, 2013
Latest reply on Jan 13, 2015 by vtammineni
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.