Partilhar via


TextIo.status Method

Definition

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)); 
    } 
}

Applies to