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.GetEnumerator

Returns an IEnumerator for the one-dimensional Array.

[Visual Basic]
Overridable Public Function GetEnumerator() As IEnumerator
[C#]
public virtual IEnumerator GetEnumerator();
[C++]
public: virtual IEnumerator* GetEnumerator();
[JScript]
public function GetEnumerator() : IEnumerator;

Return Value

An IEnumerator for the one-dimensional Array.

Exceptions

Exception Type Condition
NotSupportedException The Array is multidimensional.

Remarks

This method can be overridden by a derived class.

The enumerator does not have exclusive access to the Array; therefore, any changes made to the Array may cause Current or MoveNext to throw an exception.

Removing objects from the enumerator will remove them from the Array.

See Also

Array Class | Array Members | System Namespace