How to get Description of a Photo ?

Topics: Developer Forum
Nov 5, 2010 at 11:54 AM

Hi,

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


For Each p As Photo In allPhotos

Response.Write(p.Title.ToString)


But how can I output the Description of the Photo ?


Thanks,

Thorsten


              
                 
               

 

Coordinator
Nov 5, 2010 at 1: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.

Sam