I have this C# function to retrieve the CIMFieldDefinitions from a standalone table. It worked fine in the Pro 2.9.x but after migrating to Pro 3.0 it seems that FieldDescriptions property on the CIMStandaloneTable class is always null.
public CIMFieldDescription[] GetCIMFieldDescriptions(StandaloneTable table)
{
CIMStandaloneTable cimTableDefinition = null;
QueuedTask.Run(() =>
{
cimTableDefinition = table.GetDefinition() as CIMStandaloneTable;
});
return cimTableDefinition.FieldDescriptions;
}
Is something wrong with this code? Or is this an issue for Pro 3.0?