Share via


xInfo.num Method

Definition

Overloads

num()

Retrieves the number of exceptions of the specified type in the Infolog buffer.

num(Exception)

num()

Retrieves the number of exceptions of the specified type in the Infolog buffer.

public:
 virtual int num();
public virtual int num ();
abstract member num : unit -> int
override this.num : unit -> int
Public Overridable Function num () As Integer

Returns

An integer that represents the number of exceptions of the type specified by the exceptionType parameter, or the total number of lines in the Infolog if no parameter is specified.

Remarks

For more information, see Exception Handling with try and catch Keywords.

The following example returns the number of warnings in the Infolog.

{ 
    print infolog.num(Exception::Warning); 
    pause; 
}

Applies to

num(Exception)

public:
 virtual int num(Dynamics::AX::Application::Exception _exceptionType);
public virtual int num (Dynamics.AX.Application.Exception _exceptionType);
abstract member num : Dynamics.AX.Application.Exception -> int
override this.num : Dynamics.AX.Application.Exception -> int
Public Overridable Function num (_exceptionType As Exception) As Integer

Parameters

_exceptionType
Exception

A Exception system enumeration value that indicates the exception type to count; optional.

Returns

Applies to