Share via


Query.pack Method

Definition

Overloads

pack(Boolean)
pack()

Packs the query into a container and returns that container, so that it can be used when you create a query.

pack(Boolean)

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

Parameters

_doCheck
Boolean

A Boolean value that indicates whether to flag an error when a data source in the query references an outside cursor, such as a link to a cursor that is foreign to the query's data source; optional. The default value is true, which enforces the constraint.

Returns

Object[]

Applies to

pack()

Packs the query into a container and returns that container, so that it can be used when you create a query.

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[]

The container that holds the query.

Remarks

The container that is created by this method can serve as input when you instantiate a query or queryRun object by using either the new method or the newObject method. Links to cursors that are foreign to the query's data source are not packed into the container. If you must pack this kind of link, you should take a snapshot of the cursor's data and construct ranges for each field.

Applies to