OAuthGetXOAuthKey Method (String, StringDictionary)
Fetches XOAuth key from the specified URI passing extra parameters in that URI.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public string GetXOAuthKey(
	string uri,
	StringDictionary parameters
)

Parameters

uri
Type: SystemString
A URI for producing XOAuth key string.
parameters
Type: System.Collections.SpecializedStringDictionary
A StringDictionary object with parameters list.

Return Value

Type: String
A string with the URI for XOAuth authentication process for IMAP/SMTP.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionuri is a null reference (Nothing in Visual Basic) or an empty string.
Remarks
The return value of this method is what you then supply as a password when calling Login method of IMAP or SMTP component. Moreover, this value can be used not only with MailBee, you can pass it as OAuth key to any implementation of XOAUTH authentication.
Examples
See OAuth topic for the example.
See Also