Share via


AggregateType.TryGetFieldType Method

Definition

Overloads

TryGetFieldType(String, FormulaType)
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.

TryGetFieldType(String, FormulaType)

public virtual bool TryGetFieldType(string name, out Microsoft.PowerFx.Types.FormulaType type);
abstract member TryGetFieldType : string * FormulaType -> bool
override this.TryGetFieldType : string * FormulaType -> bool
Public Overridable Function TryGetFieldType (name As String, ByRef type As FormulaType) As Boolean

Parameters

name
String

Returns

Applies to

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.

public bool TryGetFieldType(string displayOrLogicalName, out string logical, out Microsoft.PowerFx.Types.FormulaType type);
member this.TryGetFieldType : string * string * FormulaType -> bool
Public Function TryGetFieldType (displayOrLogicalName As String, ByRef logical As String, ByRef type As FormulaType) As Boolean

Parameters

displayOrLogicalName
String

Display or Logical name.

logical
String

Logical name for the input.

type
FormulaType

Type for the input Display or Logical name.

Returns

true or false.

Exceptions

Throws, if input displayOrLogicalName is empty.

Applies to