Platform::Array Class

Represents a one-dimensional, modifiable array that can be received and passed across the application binary interface (ABI).

template <typename T>
    private ref class Array<TArg,1> : 
         public WriteOnlyArray<TArg, 1>,
         public IBoxArray<TArg>

Platform::Array inherits all its methods from Platform::WriteOnlyArray Class and implements the Value property of the Platform::IBoxArray Interface.

Name

Description

Array Constructors

Initializes a one-dimensional, modifiable array of types specified by the class template parameter, T.

Array::Value Property

Retrieves a handle to the current array.

The Array class is sealed and cannot be inherited.

The Windows Runtime type system does not support the concept of jagged arrays and therefore you cannot pass an IVector<Platform::Array<T>> as a return value or method parameter. To pass a jagged array or a sequence of sequences across the ABI, use IVector<IVector<T>^>.

For more information about when and how to use Platform::Array, see Array and WriteOnlyArray (C++/CX).

The Windows Runtime type system does not support the concept of jagged arrays and therefore you cannot pass an IVector<Platform::Array<T>> as a return value or method parameter. To pass a jagged array or a sequence of sequences across the ABI, use IVector<IVector<T>^>.

This class is defined in the vccorlib.h header, which is automatically included by the compiler. It is visible in Intellisense but not in Object Browser because it is not a public type defined in platform.winmd.

Compiler option: /ZW

Show:
© 2014 Microsoft