Partilhar via


DictField.type Method

Definition

Returns the data type of the field.

public:
 virtual Microsoft::Dynamics::Ax::Xpp::Types type();
public virtual Microsoft.Dynamics.Ax.Xpp.Types type ();
abstract member type : unit -> Microsoft.Dynamics.Ax.Xpp.Types
override this.type : unit -> Microsoft.Dynamics.Ax.Xpp.Types
Public Overridable Function type () As Types

Returns

A Types value that specifies the type of the field.

Remarks

If the field is based on an extended data type, Types::UserType is returned as the return value of this method.

The following example shows the retrieval of the type of a field.

DictField df; 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
if (df) 
{ 
    print df.type(); 
}

Applies to