Making an Add-In for ArcMap, refactoring old VBA code into VB.NET. Trying to create a new workspace with ArcObjects in VB.NET.
I am getting the error:
BC30002 Type "OLEDBWorkspaceFactory" is not defined
I tried this example IWorkspaceFactory2 Example, but I was also getting the same error with SdeWorkspaceFactory not being defined.
Below is how the code looks like. How would you rewrite it to work?
Dim pWorkspaceFact As IWorkspaceFactory2
pWorkspaceFact = New OLEDBWorkspaceFactory
Dim pWorkspace As IWorkspace
pWorkspace = pWorkspaceFact.Open(pPropSet, 0)
Dim pEnumDatasetNames As IEnumDatasetName
pEnumDatasetNames = pWorkspace.DatasetNames(esriDTTable)