C# 클래스 BetterExplorer.Networks.PastebinClient

파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 메소드들

메소드 설명
PastebinClient ( ) : System

Creates a new PastebinSharp instance without logging in. Private posting is not allowed.

PastebinClient ( string Username, string Password ) : System

Creates a new PastebinSharp instance with a Username and Password, which allows private posting.

Send ( string Body, string Subj = "", string Private = "0", string Expire = "N", string Format = "none" ) : Uri

메소드 상세

PastebinClient() 공개 메소드

Creates a new PastebinSharp instance without logging in. Private posting is not allowed.
public PastebinClient ( ) : System
리턴 System

PastebinClient() 공개 메소드

Creates a new PastebinSharp instance with a Username and Password, which allows private posting.
public PastebinClient ( string Username, string Password ) : System
Username string Pastebin.com username
Password string Pastebin.com password
리턴 System

Send() 공개 메소드

Thrown if the Body value is blank. Thrown if Private is set to "2" and the user is not logged in. Thrown if an error occurred while making the paste.
public Send ( string Body, string Subj = "", string Private = "0", string Expire = "N", string Format = "none" ) : Uri
Body string The body of the new paste. (Max size is 512 KB.)
Subj string The title of the paste. Not required.
Private string The privacy setting of the paste. 0 = Public, 1 = Unlisted, 2 = Private. Default is Public. Private is only availabe if a username and password were added. Not required.
Expire string The expiration time for this paste. Valid values are "N" (Never), "10M" (10 minutes), "1H" (1 hour), "1D" (1 day), "1W" (1 week), "2W" (2 weeks), "1M" (1 month). Default is "N". Not required.
Format string The syntax highligting format for this paste. Over 200 values are accepted. See http://pastebin.com/api#5 for more details. Default is "none". Not required.
리턴 System.Uri