Share via


xInfo.directory(DirectoryType) Method

Definition

Retrieves the path to the directory where the Finance and Operations client has been installed.

public:
 static System::String ^ directory(Dynamics::AX::Application::DirectoryType _type);
public static string directory (Dynamics.AX.Application.DirectoryType _type);
static member directory : Dynamics.AX.Application.DirectoryType -> string
Public Shared Function directory (_type As DirectoryType) As String

Parameters

_type
DirectoryType

A DirectoryType enumeration value that indicates one of the subfolders of the client installation.

Returns

A string that contains the path to the directory that is specified by the DirectoryType parameter.

Remarks

The following example prints the path to the Bin directory for the current client installation.

{ 
    print xInfo::directory(DirectoryType::Bin); 
    pause; 
}

Applies to