FlickrNet.Flickr.PhotosetsCommentsDeleteComment C# (CSharp) Method

PhotosetsCommentsDeleteComment() public method

Deletes a comment from a photoset.
public PhotosetsCommentsDeleteComment ( string commentId ) : void
commentId string The ID of the comment to delete.
return void
        public void PhotosetsCommentsDeleteComment(string commentId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photosets.comments.deleteComment");
            parameters.Add("comment_id", commentId);

            FlickrNet.Response response = GetResponseNoCache(parameters);

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