Jaa


DictType.Relationobject Method

Definition

Overloads

Relationobject()

Provides information about relations that are defined for an extended data type or a specified array element by returning a DictRelation object.

Relationobject(Int32)

Relationobject()

Provides information about relations that are defined for an extended data type or a specified array element by returning a DictRelation object.

public:
 virtual System::Object ^ Relationobject();
[Microsoft.Dynamics.Ax.Xpp.ReturnTypeCovariance("class", "DictRelation")]
public virtual object Relationobject ();
[<Microsoft.Dynamics.Ax.Xpp.ReturnTypeCovariance("class", "DictRelation")>]
abstract member Relationobject : unit -> obj
override this.Relationobject : unit -> obj
Public Overridable Function Relationobject () As Object

Returns

A DictRelation object that provides information about relations.

Attributes

Remarks

If no relations are defined for the extended data type and array elements, subsequent use of the DictRelation instance will cause a run-time error.

In the following example, the relationObject method returns the DictRelation object for the XMLMapDimension extended data type.

DictType dicttype; 
DictRelation dictrelation; 
dicttype = new DictType(extendedTypeNum(XMLMapDimension)); 
dictrelation = dicttype.relationObject(); 
if(dictrelation) 
{ 
    print "Relation lines: " + int2str(dictrelation.lines()); 
} 
else 
{ 
    print "No relations defined."; 
 }

Applies to

Relationobject(Int32)

public:
 virtual System::Object ^ Relationobject(int arrayIndex);
[Microsoft.Dynamics.Ax.Xpp.ReturnTypeCovariance("class", "DictRelation")]
public virtual object Relationobject (int arrayIndex);
[<Microsoft.Dynamics.Ax.Xpp.ReturnTypeCovariance("class", "DictRelation")>]
abstract member Relationobject : int -> obj
override this.Relationobject : int -> obj
Public Overridable Function Relationobject (arrayIndex As Integer) As Object

Parameters

arrayIndex
Int32

Returns

Attributes

Applies to