NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Array.AsList

Returns a fixed-size IList that represents the specified Array.

[Visual Basic]
Public Shared Function AsList( _
   ByVal array As Array _
) As IList
[C#]
public static IList AsList(
   Array array
);
[C++]
public: static IList* AsList(
   Array* array
);
[JScript]
public static function AsList(
   array : Array
) : IList;

Parameters

array
The Array to represent as a fixed-size IList.

Return Value

A fixed-size IList that represents the specified Array.

Remarks

In a fixed-sized list, individual elements can be modified but not added or removed.

The AsList method is the only way to create an IList from an Array.

Casting an array of value type elements into an array of Object elements is not possible in the runtime. Therefore, a value type array must be converted to an object array using the Copy method.

See Also

Array Class | Array Members | System Namespace