Creating older version File GDB in Arc Objects

2284
0
10-01-2015 04:38 AM
ChrisBarrington_Brown
New Contributor II

Hi,

I need to create older version File GDB within my ArcObjects code.  I know I could do it in Python but that isn't an option.  I can't find any help on passing a parameter to the Create method, presumably via the IPropertySet parameter.  The current code looks like this:

HRESULT hr;

CComPtr<IWorkspaceFactory> pWkspFact;

hr = pWkspFact.CoCreateInstance(CLSID_FileGDBWorkspaceFactory);

CComPtr<IWorkspaceName> pWSName;

 

hr = pWkspFact->Create((bstr_t)theApp.GetSystemPrefs()->GetUser().GetGeoprocessingDir(), (bstr_t)sName, NULL /* IPropertySet*/, NULL, &pWSName);

I'd like to pass Version="9.3" or similar, the out_version parameter of CreateFileGDB_management tool

Thanks in advance

Chris BB

0 Kudos
0 Replies