| PastebinCreatePaste Method | 
        
        
        
            Creates a new anonymous paste. Private pastes are not allowed when pasting anonymously.
            
         
        Namespace: PastebinAssembly: Pastebin (in Pastebin.dll) Version: 1.0
 Syntax
Syntaxpublic string CreatePaste(
	string title,
	string languageId,
	string code,
	PasteExposure exposure = PasteExposure.Public,
	PasteExpiration expiration = PasteExpiration.Never
)
Public Function CreatePaste ( 
	title As String,
	languageId As String,
	code As String,
	Optional exposure As PasteExposure = PasteExposure.Public,
	Optional expiration As PasteExpiration = PasteExpiration.Never
) As String
public:
String^ CreatePaste(
	String^ title, 
	String^ languageId, 
	String^ code, 
	PasteExposure exposure = PasteExposure::Public, 
	PasteExpiration expiration = PasteExpiration::Never
)
member CreatePaste : 
        title : string * 
        languageId : string * 
        code : string * 
        ?exposure : PasteExposure * 
        ?expiration : PasteExpiration 
(* Defaults:
        let _exposure = defaultArg exposure PasteExposure.Public
        let _expiration = defaultArg expiration PasteExpiration.Never
*)
-> string 
Parameters
- title
- Type: SystemString
 The title of the paste as it will appear on the page.
- languageId
- Type: SystemString
 The the language ID of the paste's content. A full list of language IDs can be found at http://pastebin.com/api#5
- code
- Type: SystemString
 The contents of the paste.
- exposure (Optional)
- Type: PastebinPasteExposure
 The visibility of the paste (private, public, or unlisted).
- expiration (Optional)
- Type: PastebinPasteExpiration
 The duration of time the paste will be available before expiring.
Return Value
Type: 
StringThe URL for the newly created paste.
 Exceptions
Exceptions See Also
See Also