Gets an array of subtype information objects.
GetMapTableSubtypeInfos(string MapName, int[] TableIDs)
Parameter |
Description |
MapName |
The name of the map (data frame) that contains the layer/table. |
TableIDs |
A list of layers/standalonetable ids for which subtype information will be returned. |
Return Value
An array of MapTableSubtypeInfo objects, each containing information about a layer/standalonetable’s subtype and domain.
Remarks
The function takes an array of standalonetable and layer ids. When this parameter is Nothing/Null, all layers and standalone tables are checked for subtypes. No object is returned for layers/tables whose HasSubtype is False. Use MapLayerInfo/StandaloneTableInfo to locate this property). Therefore, the count of input TableIDs may not match with the count of returned array. Use the MapTableSubtypeInfo.TableID to find which layer/table the object belongs to.
Each returned object contains information about all subtypes and domains assigned at subtype level. When a field is invisible, even though it may have domain assigned for a subtype, SubtypeInfo.FieldDomainInfos does not contain a FieldDomainInfo for that field.
Also, note that subtype and domains are not returned from joined table.
This function returns an error message when the CodeCount of all CodedValueDomains from all layers and tables exceeds <MaxDomainCodeCount>.
Examples