Share via


DictTable.Relationcnt Method

Definition

Overloads

Relationcnt(TableScope)
Relationcnt()

Returns the number of relations for the table.

Relationcnt(TableScope)

public:
 virtual int Relationcnt(Microsoft::Dynamics::Ax::Xpp::TableScope tableScope);
public virtual int Relationcnt (Microsoft.Dynamics.Ax.Xpp.TableScope tableScope);
abstract member Relationcnt : Microsoft.Dynamics.Ax.Xpp.TableScope -> int
override this.Relationcnt : Microsoft.Dynamics.Ax.Xpp.TableScope -> int
Public Overridable Function Relationcnt (tableScope As TableScope) As Integer

Parameters

tableScope
TableScope

Returns

Applies to

Relationcnt()

Returns the number of relations for the table.

public:
 virtual int Relationcnt();
public virtual int Relationcnt ();
abstract member Relationcnt : unit -> int
override this.Relationcnt : unit -> int
Public Overridable Function Relationcnt () As Integer

Returns

The number of relations for the table.

Remarks

The following example shows the retrieval of the number of relations for a table.

DictTable dt; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    print (strfmt("The table has %1 relations.", dt.relationCnt())); 
}

Applies to