TreeNode.treeNodeExport Method

Definition

Overloads

treeNodeExport(String)

Exports this node and its subtree from the Application Object Tree (AOT).

treeNodeExport(String, Int32)

treeNodeExport(String)

Exports this node and its subtree from the Application Object Tree (AOT).

public:
 virtual void treeNodeExport(System::String ^ text1);
public virtual void treeNodeExport (string text1);
abstract member treeNodeExport : string -> unit
override this.treeNodeExport : string -> unit
Public Overridable Sub treeNodeExport (text1 As String)

Parameters

text1
String

Remarks

If an attacker can control input to this method, a security risk exists. Therefore, this method runs under Code Access Security. Calls to this method on the server require permission from the . Ensure that the user has development privileges by setting the security key to SysDevelopment on the control that calls this method.

This example uses the treeNodeExport method to export the ExampleClass class to an .xpo file.

void TreeNodeExample() 
{ 
    TreeNode treeNode; 
    TreeNode childNode; 
    FileIoPermission perm; 
    #define.ExportFile(@"c:\TreeNodeExportExampleClass.xpo") 
    #define.ExportMode("w") 
    perm = new FileIoPermission(#ExportFile, #ExportMode); 
    if (perm == null) 
    { 
        return; 
    } 
    perm.assert(); 
    treeNode = TreeNode::findNode(@"\Classes"); 
    if (treeNode != null) 
    { 
        childNode = treeNode.AOTfindChild(@"ExampleClass"); 
        // BP deviation documented. 
        childNode.treeNodeExport(#ExportFile); 
    } 
    CodeAccessPermission::revertAssert(); 
}

Applies to

treeNodeExport(String, Int32)

public:
 virtual void treeNodeExport(System::String ^ _filename, int _flag);
public virtual void treeNodeExport (string _filename, int _flag);
abstract member treeNodeExport : string * int -> unit
override this.treeNodeExport : string * int -> unit
Public Overridable Sub treeNodeExport (_filename As String, _flag As Integer)

Parameters

_filename
String
_flag
Int32

Applies to