Bagikan melalui


PropertyDictionary.GetEnumerator Method

Returns an enumerator that iterates through a collection of key/value pairs that represent elements in the PropertyDictionary.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

Syntax

public IEnumerator<KeyValuePair<string, Object>> GetEnumerator ()

Return Value

An that iterates through a collection of key/value pairs that represent elements in the PropertyDictionary.

Remarks

The C# foreach statement hides the complexity of using enumerators. Therefore, using foreach is recommended instead of directly manipulating the enumerator.

Enumerators can be used to read the data in the collection, but can not be used to modify the underlying collection.

See Also

Reference

PropertyDictionary Class
PropertyDictionary Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7