Share via


TreeNode.AOTUtilFileType Method

Definition

Retrieves the value of the UtilFileType enumeration type for the TreeNode object. The UtilFileType indicates which kind of file the application object is stored in.

public:
 virtual Dynamics::AX::Application::UtilFileType AOTUtilFileType();
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual Dynamics.AX.Application.UtilFileType AOTUtilFileType ();
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member AOTUtilFileType : unit -> Dynamics.AX.Application.UtilFileType
override this.AOTUtilFileType : unit -> Dynamics.AX.Application.UtilFileType
Public Overridable Function AOTUtilFileType () As UtilFileType

Returns

The value of the UtilFileType enumeration for the tree node. The possible values are in the following list. UtilFileType::Application means that the element is stored in the .aod file (form, report, query, table, and so on). UtilFileType::ApplicationCodeDocumentation means that the element is stored in the .add file. UtilFileType::ApplicationHelp means that the element is stored in the .ahd file. UtilFileType::KernelHelp means that the element is stored in the .akh file.

Attributes
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

Remarks

The following example finds a TreeNode object of each UtilFileType, and then prints the path of the UtilFileType to the Infolog.

static void myJob(Args _args) 
{ 
    treeNode tn; 
    tn = treeNode::findNode("\\Forms"); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
         "Path: %1 \nUtilFileType: %2", 
         tn.treeNodePath(), 
         tn.AOTUtilFileType())); 
    tn = treeNode::findNode("\\System Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
         "Path: %1 \nUtilFileType: %2", 
         tn.treeNodePath(), 
         tn.AOTUtilFileType())); 
    tn = treeNode::findNode("\\Application Developer Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
        "Path: %1 \nUtilFileType: %2", 
        tn.treeNodePath(), 
        tn.AOTUtilFileType())); 
    tn = treeNode::findNode("\\Application Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
        "Path: %1 \nUtilFileType: %2", 
        tn.treeNodePath(), 
        tn.AOTUtilFileType())); 
}

Applies to