Прочитать на английском

Поделиться через


Microsoft.PowerFx.Types Namespace

Classes

AggregateType
BindingErrorType

A binding error type, attached to syntax nodes whose type is incorrect.

BlankType

Represents a Blank (similar to Null) value. BlankType is compatible with other types.

BlankValue
BooleanType
BooleanValue
CollectionTableValue<T>

Create a TableValue over a dotnet collection class. Depending on what collection interfaces it exposes will determine the capabilities (such as Enumeration, Count, Index).

ColorType
ColorValue
DateTimeNoTimeZoneType
DateTimeType
DateTimeValue

Represents a Date and Time together, in the local time zone.

DateType
DateValue

Represents a Date only, without a time component, in the local time zone.

DecimalType
DecimalValue
DeferredType

An unknown type, attached to syntax nodes whose type cannot be determined. NOTE: it's not valid to even attempt to execute an expression that references a deferred type.

DValue<T>

Represents the type (T | Blank | Error), where T is neither Blank nor Error TableValue stores this class (Rows), and it can be used in any situation where a value can be either a known type or Blank/Error.

ErrorValue

A Runtime error.

ExternalType

FormulaType that can be used by UntypedObject instances to indicate that the type of the data does not exist in PowerFx.

FormulaType

Base class for type of a Formula. Formula Types are a class hiearchy.

FormulaValue

Represent a value in the formula expression.

FormulaValueJSON
GuidType
GuidValue
HyperlinkType
NamedFormulaType
NamedValue

Helper class for representing fields or columns.

NumberType
NumberValue
ObjectRecordValue

Represent a Record that's backed by a DotNet object. Field access is lazy.

OptionSetValue

A value within an option set.

OptionSetValueType

Power Fx type for an enum-like things such as OptionSets.

PrimitiveValue<T>

Helper for non-aggregate values that are represented as a single .net object. See PrimitiveValueConversions for converting between a T and a FormulaType.

PrimitiveValueConversions

Mapping between builtin dotnet Types and power fx types. This works for primitives derived from PrimitiveValue<T>. To marshal complex types, use explicit construction methods or a TypeMarshaller.

QueryableTableValue
RecordType

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.

RecordValue

Represent a Record. Records have named fields which can be other values.

StringType
StringValue
TableType

Represents a table type within Power Fx. Build using Empty() and Add(NamedFormulaType) or call ToTable() on a derived table type.

TableValue

Represents a table (both single columna and multi-column).

TimeType
TimeValue
UnknownType

An unknown type, attached to syntax nodes whose type cannot be determined.

UnsupportedType

Type not currently supported by the API.

UntypedObjectType
UntypedObjectValue
ValidFormulaValue

All values except BlankValue and ErrorValue should inherit from this base class. BlankValue and ErrorValue inherit directly from FormulaValue. The type parameter T in DValue is constrained to ValidFormulaValue, meaning that BlankValue and ErrorValue can never be substituted for T.

Void

Special Type which can't be coerced or accepted by any types.

VoidValue

Interfaces

ITypeVisitor

Visitor for walking FormulaType.

IUntypedObject

The backing implementation for UntypedObjectValue, for example Json, Xml, or the Ast or Value system from another language.

IValueVisitor

Enums

ExternalTypeKind

This enum represents types which are not supported by PowerFx but which may be supported by external data formats.

SpecialFieldKind

Optional special fields with special semantics.