Select to view content in your preferred language

Table.FieldDefs throws an exception in C#

29
0
6 hours ago
AlexanderGleyzer2
New Member

Hello.

I'm using FileGDB API for .NET 1.5.3

I cannot get the field definitions of a feature class in an FGDB.

Here's the code sample:

var geodatabase = Geodatabase.Open("....gdb");

var table = geodatabase.OpenTable("...");

var fieldDefs = table.FieldDefs;    <== exception thrown here

 

The FieldInformation property works just fine, but I really need the FieldDefs.

Tried different feature classes and different FGDBs - getting the same exception each time.

Any ideas?

 

Thanks.

 

 

0 Kudos
0 Replies