删除相册中的照片后如何刷新picasa相册

时间:2012-04-02 11:10:40

标签: asp.net picasa

如何在删除相册中的照片后刷新Picasa相册...

我使用以下代码查询相册的照片:  尝试

        Dim websvc As New PicasaService("abc")
        Dim query As New PhotoQuery(PicasaQuery.CreatePicasaUri(loginID, albumid))
        Dim oList As New List(Of AlbumPhotos)
        Dim feed As PicasaFeed = websvc.Query(query)

        For Each entry As PicasaEntry In feed.Entries
            Dim ac As New PhotoAccessor(entry)
            Dim oData As New AlbumPhotos
            With oData
                .FeedUri = entry.Media.Content.Attributes("url").ToString
                .ThumbnailUrl = entry.Media.Thumbnails(0).Attributes("url").ToString
                .Title = entry.Title.Text
                .Summary = entry.Summary.Text
                .PhotoID = ac.Id.ToString
            End With
            oList.Add(oData)
        Next

        feed = Nothing
        websvc = Nothing
        Return oList
    Catch ex As Exception
        Return Nothing
    Finally

    End Try

删除照片后,它返回与之前相同的照片数,并返回已删除的照片....为什么???

0 个答案:

没有答案