Partager via


Report.pack Method

Definition

Serializes the current instance of the Report class.

public:
 virtual cli::array <System::Object ^> ^ pack();
public virtual object[] pack ();
abstract member pack : unit -> obj[]
override this.pack : unit -> obj[]
Public Overridable Function pack () As Object()

Returns

Object[]

A container that contains the current instance of the Report class.

Remarks

The returned container can be used as first argument to the report constructor.

The following example stores a report named "cust" in a container and runs the report in the container (not the container in the AOT).

static void testReportPack(args a) 
{ 
    report r1; 
    report r2; 
    reportRun rr; 
    container c; 
    r1 = new report("cust"); 
    c = r1.Pack(); 
    r2 = new report(c); 
    rr = new reportrun(r2); 
    rr.Run(); 
}

Applies to