RedditSharp.Things.Subreddit.SubmitPost C# (CSharp) Method

SubmitPost() public method

Submits a link post in the current subreddit using the logged-in user
public SubmitPost ( string title, string url, string captchaId = "", string captchaAnswer = "", bool resubmit = false ) : Post
title string The title of the submission
url string The url of the submission link
captchaId string
captchaAnswer string
resubmit bool
return Post
        public Post SubmitPost(string title, string url, string captchaId = "", string captchaAnswer = "", bool resubmit = false)
        {
            return
                Submit(
                    new LinkData
                    {
                        Subreddit = Name,
                        UserHash = Reddit.User.Modhash,
                        Title = title,
                        URL = url,
                        Resubmit = resubmit,
                        Iden = captchaId,
                        Captcha = captchaAnswer
                    });
        }