I'm trying to create an in-memory feature class, and I assume the way to do this is to first create an in-memory geodatabase and then copy the feature class to this geodatabase. I'm able to create the geodatabase, but the copy operation fails. Here is my code:
MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties("MyMemoryGDB");
Geodatabase geodatabase = SchemaBuilder.CreateGeodatabase(memoryConnectionProperties);
var parameters = Geoprocessing.MakeValueArray(@C:\Users\kbmeinstein\Desktop\DeformTest\50Ma_Pro_Deftest_model_save.gdb\DefMotion_50Ma, @in_memory\MyMemoryGDB, "test");
IGPResult result = await Geoprocessing.ExecuteToolAsync("FeatureClassToFeatureClass_conversion", parameters, null, null, null, GPExecuteToolFlags.AddOutputsToMap);
Any suggestions how to get this to work would be greatly appreciated.