GenreCollection.Item Property
Gets the Genre at the specified index in the GenreCollection.
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As Genre
public Genre this [
int index
] { get; }
public:
property Genre default [Int32] {
Genre get (int index);
}
Property Value
Type: Genre
A new Genre representing the genre at the specified index in this GenreCollection.
Remarks
Each call returns a new Genre instance.
Genre resources such as the song and album collections for that genre are cached in each Genre instance. Retrieving and maintaining references to multiple instances of the same genre, and accessing the Songs or Albums collections on each of those instances, creates multiple copies of the song or album collections.
Requirements
Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Genre Class
GenreCollection Class
GenreCollection Members
Microsoft.Xna.Framework.Media Namespace
Platforms
Windows Phone