This project has moved and is read-only. For the latest updates, please go here.

How to get Description of a Photo ?

Topics: Developer Forum
Nov 5, 2010 at 12:54 PM


I have the following VB.NET Code to output the title of a photo:

For Each p As Photo In allPhotos


But how can I output the Description of the Photo ?





Nov 5, 2010 at 2:19 PM

Firstly, it depends on how you populated the allPhotos variable. If you used PhotosSearchOptions then you need to add PhotosSearchExtras.Description to the Extras property to make sure Flickr returns the description.

Then simply reference the p.Description property.

Finally - p.Title and p.Description are already strings. There is no need to add ToString onto the end of it.