RecordType 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 Record type within PowerFx. If this is subclassed, it's quite likely that RecordValue should be as well. If the type is known in advance and easy to construct, use Empty() and Add(NamedFormulaType) instead of deriving from this.
public abstract class RecordType : Microsoft.PowerFx.Types.AggregateType
type RecordType = class
inherit AggregateType
Public MustInherit Class RecordType
Inherits AggregateType
- Inheritance
Constructors
RecordType() |
Initializes a new instance of the RecordType class. Derived classes calling this must override FieldNames and TryGetFieldType(String, FormulaType). |
RecordType(DisplayNameProvider, TableDelegationInfo) |
Initializes a new instance of the RecordType class with DisplayNameProvider and TableDelegationInfo. Derived classes calling this must override TryGetFieldType(String, FormulaType). |
RecordType(DisplayNameProvider) |
Initializes a new instance of the RecordType class with DisplayNameProvider. Derived classes calling this must override FieldNames and TryGetFieldType(String, FormulaType). |
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) |
By default, adding a field to a TableType requires the type to be fully expanded Override if your derived class can change that behavior. |
Add(String, FormulaType, String) |
Wrapper for Add(NamedFormulaType). |
Empty() |
Static builder method for constructing a record type. Use with Add(NamedFormulaType) to construct a record type. |
EmptySealed() |
Static builder method for constructing a sealed record type. Use with Add(NamedFormulaType) to construct a record type. |
Equals(Object) | (Inherited from AggregateType) |
GetFieldType(String) | (Inherited from AggregateType) |
GetFieldTypes() | (Inherited from AggregateType) |
GetHashCode() | (Inherited from AggregateType) |
GetNames() |
Obsolete.
(Inherited from AggregateType)
|
Polymorphic() |
Static builder method for constructing a Polymorphic record type. Used for Dataverse Polymorphic types. |
ToTable() |
Converts this type to a table. If this type was a record of a derived TableType, returns the derived TableType. |
TryGetCapabilities(TableDelegationInfo) |
For tooling, return back capabilities of the table. May return null if the table was not created with TableDelegationInfo. |
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
TryGetFieldExternalTableName(RecordType, String, String, String) | |
CanPotentiallyCoerceTo(FormulaType, FormulaType) |
Can convert value to source format to target or not. |
CanPotentiallyCoerceToRecordType(RecordType, RecordType) |
Can convert value to source format to record target or not. |