Share via


DictTable.Objectmethod Method

Definition

Overloads

Objectmethod(Int32)

Returns the name of an instance method that is specified by index.

Objectmethod(Int32, TableScope)

Objectmethod(Int32)

Returns the name of an instance method that is specified by index.

public:
 virtual System::String ^ Objectmethod(int methodNumber);
public virtual string Objectmethod (int methodNumber);
abstract member Objectmethod : int -> string
override this.Objectmethod : int -> string
Public Overridable Function Objectmethod (methodNumber As Integer) As String

Parameters

methodNumber
Int32

Returns

The name of the instance method that is specified by the methodNumber parameter; an empty string if the methodNumber value is not a valid instance method index.

Remarks

The following example shows the retrieval of the name of each instance method in a table.

DictTable dt; 
int       i; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.objectMethodCnt() ; i++) 
    { 
        print dt.objectMethod(i); 
    } 
}

Applies to

Objectmethod(Int32, TableScope)

public:
 virtual System::String ^ Objectmethod(int methodNumber, Microsoft::Dynamics::Ax::Xpp::TableScope tableScope);
public virtual string Objectmethod (int methodNumber, Microsoft.Dynamics.Ax.Xpp.TableScope tableScope);
abstract member Objectmethod : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> string
override this.Objectmethod : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> string
Public Overridable Function Objectmethod (methodNumber As Integer, tableScope As TableScope) As String

Parameters

methodNumber
Int32
tableScope
TableScope

Returns

Applies to