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 |
---|---|---|
Uri | serviceUri | The service that can be accessed with this credential. |
String | token | The token. |
GenerateTokenOptions | generateTokenOptions | Optional information about how to generate the token. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.2 |
.NET 6.0 | 100.14 - 200.2 |
.NET 6.0 Windows | 100.14 - 200.2 |
.NET 6.0 Android | 200.2 |
.NET 6.0 iOS | 200.0 - 200.2 |
.NET Framework | 100.14 - 200.2 |
Android | 100.14 |
iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.2 |