Hi together!
I'm trying to delete an ITable in an inMemoryWorkspace but the following code doesn't work:
The code doesn't throw an exception but later I try to generate a new ITable with the same name:
Now I get the following exception:
I debugged my code and recognize that the IName object from my generated ITable is empty. Is this the problem why the deleteTableInWorkspace method doesn't work? But how can i fill the IName object from the Tbale with values?
I'm trying to delete an ITable in an inMemoryWorkspace but the following code doesn't work:
Code:
Public Sub deleteTableInWorkspace(ByVal pTable As ITable)
Dim pDataset As IDataset
pDataset = pTable
CType(managerInMemoryWorkspace, IFeatureWorkspaceManage).DeleteByName(pDataset.FullName)
End Sub
Code:
Dim pTable As ITable = workspace.CreateTable(ITableName, pFields, Nothing, Nothing, "")
Code:
"Exception from HRESULT: 0x80040353"