TextIo.status Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the status of the last operation performed on a TextIo object.
public:
override Dynamics::AX::Application::IO_Status status();
public override Dynamics.AX.Application.IO_Status status ();
override this.status : unit -> Dynamics.AX.Application.IO_Status
Public Overrides Function status () As IO_Status
Returns
The status of the last operation.
Remarks
The following example throws an error if a file does not exist or if the last operation on the file did not have a status of the IO_Status::Ok enumeration value.
protected void checkDiskFileStatus()
{
if (!diskFile || diskFile.status() != IO_Status::Ok)
{
throw error(strfmt("@SYS76826", diskFileName));
}
}