FlickrNet.Flickr.PhotosCommentsDeleteComment C# (CSharp) Method

PhotosCommentsDeleteComment() public method

Deletes a comment from a photo.
public PhotosCommentsDeleteComment ( string commentId ) : void
commentId string The ID of the comment to delete.
return void
        public void PhotosCommentsDeleteComment(string commentId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.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