Partilhar via


Array Class

Definition

public ref class Array : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
public class Array : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
type Array = class
    inherit XppObjectBase
Public Class Array
Inherits XppObjectBase
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
Array

Remarks

Arrays can hold values of any single type, such as objects and records (contrary to the array data type that is built into the X++ language). Objects of this type can be transferred to functions and methods. The values are stored sequentially. The arrays expand as required. Therefore, no specific dimension of the array is supplied.

The following example creates an array of classes and adds three query objects to the array.

{ 
    Array oarray = new Array (Types::Class); 
    oarray.value(1, new query()); 
    oarray.value(2, new query()); 
    oarray.value(4, new query());  
    print oarray.toString(); 
    print oarray.definitionString(); 
    pause; 
}

Constructors

Array(Types)

Fields

kernelClass (Inherited from XppObjectBase)

Properties

AxClassId
GlobalType

Methods

__shouldCallNew(Type) (Inherited from XppObjectBase)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
create(Object[])

Creates an array from the container that is obtained from a previous call to the Array.pack method.

createFromXML(XppObjectBase)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
definitionString()

Returns a string that contains the definition of the array.

DotNetCollectionToXppCollection<TKey>(List<TKey>, Types)
equal(XppObjectBase) (Inherited from XppObjectBase)
exists(Int32)

Determines whether a particular array element is valid.

finalize() (Inherited from XppObjectBase)
GetIntPtr()
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
IsManagedValid()
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
lastIndex()

Retrieves the highest index that is used to store a value in the array.

MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod() (Inherited from XppObjectBase)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
pack()

Serializes the current instance of the Array class.

setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
ToString()

Returns a string that describes the contents of the array.

typeId()

Returns the data type of the values in the array.

usageCount() (Inherited from XppObjectBase)
value(Int32, Object)
value(Int32)

Gets or sets the value of the array element that is stored at the specified index.

VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml()

Returns an XML string that represents the current object.

Xml(Int32)
XppCollectionToDotNetCollection<TKey>(Array)

Applies to