Share via


xInfo.add Method

Definition

Overloads

add(Exception, String)

Adds a string to the Infolog buffer.

add(Exception, String, String)
add(Exception, String, String, XppObjectBase)
add(Exception, String, String, XppObjectBase, Boolean)
add(Exception, String, String, XppObjectBase, Boolean, String)

add(Exception, String)

Adds a string to the Infolog buffer.

public:
 virtual Dynamics::AX::Application::Exception add(Dynamics::AX::Application::Exception exception1, System::String ^ text1);
public virtual Dynamics.AX.Application.Exception add (Dynamics.AX.Application.Exception exception1, string text1);
abstract member add : Dynamics.AX.Application.Exception * string -> Dynamics.AX.Application.Exception
override this.add : Dynamics.AX.Application.Exception * string -> Dynamics.AX.Application.Exception
Public Overridable Function add (exception1 As Exception, text1 As String) As Exception

Parameters

exception1
Exception
text1
String

Returns

An Exception system enumeration value. For more information, see Exception Handling with try and catch Keywords.

Remarks

An example value for the helpURL parameter is 'KernDoc:\\\\Functions\\substr'. This method should not be used directly. Instead, use the infolog.info, infolog.warning, infolog.error, or infolog.checkFailed method instead. For more information about the exceptionType parameter, see Exception Handling with try and catch Keywords.

Applies to

add(Exception, String, String)

public:
 virtual Dynamics::AX::Application::Exception add(Dynamics::AX::Application::Exception exception1, System::String ^ text1, System::String ^ text2);
public virtual Dynamics.AX.Application.Exception add (Dynamics.AX.Application.Exception exception1, string text1, string text2);
abstract member add : Dynamics.AX.Application.Exception * string * string -> Dynamics.AX.Application.Exception
override this.add : Dynamics.AX.Application.Exception * string * string -> Dynamics.AX.Application.Exception
Public Overridable Function add (exception1 As Exception, text1 As String, text2 As String) As Exception

Parameters

exception1
Exception
text1
String
text2
String

Returns

Applies to

add(Exception, String, String, XppObjectBase)

public:
 virtual Dynamics::AX::Application::Exception add(Dynamics::AX::Application::Exception exception1, System::String ^ text1, System::String ^ text2, Microsoft::Dynamics::Ax::Xpp::XppObjectBase ^ base1);
public virtual Dynamics.AX.Application.Exception add (Dynamics.AX.Application.Exception exception1, string text1, string text2, Microsoft.Dynamics.Ax.Xpp.XppObjectBase base1);
abstract member add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase -> Dynamics.AX.Application.Exception
override this.add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase -> Dynamics.AX.Application.Exception
Public Overridable Function add (exception1 As Exception, text1 As String, text2 As String, base1 As XppObjectBase) As Exception

Parameters

exception1
Exception
text1
String
text2
String

Returns

Applies to

add(Exception, String, String, XppObjectBase, Boolean)

public:
 virtual Dynamics::AX::Application::Exception add(Dynamics::AX::Application::Exception _exceptionType, System::String ^ _string, System::String ^ _helpURL, Microsoft::Dynamics::Ax::Xpp::XppObjectBase ^ _obj, bool _buildprefix);
public virtual Dynamics.AX.Application.Exception add (Dynamics.AX.Application.Exception _exceptionType, string _string, string _helpURL, Microsoft.Dynamics.Ax.Xpp.XppObjectBase _obj, bool _buildprefix);
abstract member add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase * bool -> Dynamics.AX.Application.Exception
override this.add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase * bool -> Dynamics.AX.Application.Exception
Public Overridable Function add (_exceptionType As Exception, _string As String, _helpURL As String, _obj As XppObjectBase, _buildprefix As Boolean) As Exception

Parameters

_exceptionType
Exception

Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.

_string
String

Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.

_helpURL
String

Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.

_obj
XppObjectBase

Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.

_buildprefix
Boolean

Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.

Returns

Applies to

add(Exception, String, String, XppObjectBase, Boolean, String)

public:
 virtual Dynamics::AX::Application::Exception add(Dynamics::AX::Application::Exception _exceptionType, System::String ^ _string, System::String ^ _helpURL, Microsoft::Dynamics::Ax::Xpp::XppObjectBase ^ _obj, bool _buildprefix, System::String ^ _label);
public virtual Dynamics.AX.Application.Exception add (Dynamics.AX.Application.Exception _exceptionType, string _string, string _helpURL, Microsoft.Dynamics.Ax.Xpp.XppObjectBase _obj, bool _buildprefix, string _label);
abstract member add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase * bool * string -> Dynamics.AX.Application.Exception
override this.add : Dynamics.AX.Application.Exception * string * string * Microsoft.Dynamics.Ax.Xpp.XppObjectBase * bool * string -> Dynamics.AX.Application.Exception
Public Overridable Function add (_exceptionType As Exception, _string As String, _helpURL As String, _obj As XppObjectBase, _buildprefix As Boolean, _label As String) As Exception

Parameters

_exceptionType
Exception
_string
String
_helpURL
String
_buildprefix
Boolean
_label
String

Returns

Applies to