PictureAlbumCollection.Item Property

Gets the PictureAlbum at the specified index in the PictureAlbumCollection.

Syntax

'Declaration
Public ReadOnly Property Item ( _
         index As Integer _
) As PictureAlbum 
public PictureAlbum this [
         int index
] { get; }
public:
property PictureAlbum default [Int32] {
         PictureAlbum get (int index);
}

Property Value

Type: PictureAlbum
A new PictureAlbum representing the picture album at the specified index in this PictureAlbumCollection.

Remarks

Each call returns a new PictureAlbum instance.

PictureAlbum resources such as the picture collection and children picture albums collection are cached in each PictureAlbum instance. Retrieving and maintaining references to multiple instances of the same picture album, and then accessing the picture collection (PictureAlbum.Pictures) or children picture albums collection (PictureAlbum.Albums) on each of those instances, creates multiple copies of the resources.

Requirements

Namespace: Microsoft.Xna.Framework.Media

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

See Also

PictureAlbumCollection Class
PictureAlbumCollection Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Windows Phone