Share via


AxdBase::newClassId Method [AX 2012]

Instantiates a document class object.

Syntax

server public static AxdBase newClassId(ClassId _classId)

Run On

Server

Parameters

Return Value

Type: AxdBase Class
An object of the document class according to the input parameter.

Remarks

Any document class object should always be instantiated through the newClassId method. It verifies that the class is a document class.

Examples

The following example shows how to instantiate an instance of AxdSalesOrder.

    AxdBase         axdBase =  
  AxdBase::newClassId(classNum(AxdSalesOrder));

See Also

Reference

AxdBase Class