Partilhar via


DictTable.Indexobject(Int32) Method

Definition

Creates an instance of the DictTable class for the index that is specified by ID.

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

Parameters

indexId
Int32

The ID of the index to create.

Returns

A DictIndex object for the index that is specified by the indexId parameter; null, Nothing, nullptr, unit, a null reference (Nothing in Visual Basic) if the object could not be created.

Attributes

Remarks

The following example shows how to create a DictIndex object for the unique index of a table.

DictTable dt; 
DictIndex di; 
dt = new DictTable(tablenum(SysUserInfo)); 
if (dt) 
{ 
     di = dt.indexObject(dt.indexUnique()); 
     if (di) 
     { 
        print di.name(); 
     } 
}

Applies to