Constructor OAuthTokenCredential
OAuthTokenCredential(Uri, String, GenerateTokenOptions)
Initializes a new instance of the OAuthTokenCredential class.
Declaration
public OAuthTokenCredential(Uri serviceUri, string token, GenerateTokenOptions generateTokenOptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | serviceUri | The service that can be accessed with this credential. |
System.String | token | The token. |
GenerateTokenOptions | generateTokenOptions | Optional information about how to generate the token. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |