Partager via


TreeNode.AOTmessageLine(String, Int32) Method

Definition

Writes text to the Application Object Tree (AOT) Message window.

public:
 virtual void AOTmessageLine(System::String ^ _text, int _linenumber);
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual void AOTmessageLine (string _text, int _linenumber);
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member AOTmessageLine : string * int -> unit
override this.AOTmessageLine : string * int -> unit
Public Overridable Sub AOTmessageLine (_text As String, _linenumber As Integer)

Parameters

_text
String

An integer that is ignored. It does not currently direct the written text to a specific line number in the output Message window.

_linenumber
Int32

An integer that is ignored. It does not currently direct the written text to a specific line number in the output Message window.

Attributes
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

Remarks

This method is intended to be used to output text so that when the user later double-clicks that line of text in the message window, some action will happen regarding this node.

The following example executes the AOTmessageLine method on a Form object, because Form inherits this method from TreeNode.

static void JobAOTmessageLineDemo(Args _args) 
{ 
    Form f = new Form('testAOTMessageLine'); 
    // 
    f.AOTmessageLine('test message 1a',1); 
    f.AOTmessageLine('test message 2a',2); 
    f.AOTmessageLine('test message 3a',3); 
    f.AOTmessageLine('test message 1b',1); 
    f.AOTmessageLine('test message 2b',2); 
    f.AOTmessageLine('test message 3b',3); 
    f.AOTmessageLine('test message 2c',2); 
    // 
    /******* 
    Actual Output in the Message window 
    (the 7 identical lines): 
    test message 2c 
    test message 2c 
    test message 2c 
    test message 2c 
    test message 2c 
    test message 2c 
    test message 2c 
    *******/ 
}

Applies to