TableType Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a table type within Power Fx. Build using Empty() and Add(NamedFormulaType) or call ToTable() on a derived table type.
public class TableType : Microsoft.PowerFx.Types.AggregateType
type TableType = class
inherit AggregateType
Public Class TableType
Inherits AggregateType
- Inheritance
Properties
| FieldNames | |
| TableSymbolName |
Get a symbol name - which is the name this was added with in the symbol table. This may be null. This may often be a Display Name or whatever the host assigned, like "Accounts_2". (Inherited from AggregateType) |
| UserVisibleTypeName |
Override to add a more specific user-visible type name when this type shows up in error messages, suggestions, etc.. (Inherited from AggregateType) |
Methods
| Add(NamedFormulaType) |
Adding a field to a TableType requires the type to be fully expanded. |
| Add(String, FormulaType, String) |
Wrapper for Add(NamedFormulaType). |
| Empty() |
Static builder method for constructing a TableType. Use with Add(NamedFormulaType) to construct a Table type. |
| Equals(Object) | |
| GetFieldType(String) | (Inherited from AggregateType) |
| GetFieldTypes() | (Inherited from AggregateType) |
| GetHashCode() | |
| GetNames() |
Obsolete.
(Inherited from AggregateType)
|
| ToRecord() |
Converts this type to a table. If this type was a Table of a derived RecordType, returns the derived RecordType. |
| TryGetFieldType(String, FormulaType) | (Inherited from AggregateType) |
| TryGetFieldType(String, String, FormulaType) |
Lookup for logical name and field for input display or logical name. If there is a conflict, it prioritizes logical name. i.e. field1->Logical=F1 , Display=Display1; field2-> Logical=Display1, Display=Display2 would return field2 with logical name Display1. (Inherited from AggregateType) |
| TryGetPrimaryKeyFieldName(IEnumerable<String>) |
Obsolete.
Primarily used for optimizing delegation when looking up record with primary key on a relationship. e.g. LookUp(t1, relationField.PrimaryKey = GUID). (Inherited from AggregateType) |
| TryGetUnderlyingFieldType(String, FormulaType) | (Inherited from AggregateType) |
| Visit(ITypeVisitor) | |
Extension Methods
| CanPotentiallyCoerceTo(FormulaType, FormulaType) |
Can convert value to source format to target or not. |
| CanPotentiallyCoerceToTableType(TableType, TableType) |
Can convert value to source format to table target or not. |