FlickrNet.Flickr.PhotosetsRemovePhoto C# (CSharp) Method

PhotosetsRemovePhoto() public method

Removes a photo from a photoset.
An exception will be raised if the photo is not in the set.
public PhotosetsRemovePhoto ( string photosetId, string photoId ) : void
photosetId string The ID of the photoset to remove the photo from.
photoId string The ID of the photo to remove.
return void
        public void PhotosetsRemovePhoto(string photosetId, string photoId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photosets.removePhoto");
            parameters.Add("photoset_id", photosetId);
            parameters.Add("photo_id", photoId);

            FlickrNet.Response response = GetResponseNoCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                return;
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr