.Net SDK 4.0.0 documentation
.Net SDK 4.0.0 documentation
System.Net.Http
HttpClientExtensions Class
HttpClientExtensions Methods
SetBasicAuthentication Method
SetBearerToken Method
SetToken Method
HttpClientExtensions
SetToken Method
Sets Token value
Namespace:
System.Net.Http
Assembly:
Intuit.Ipp.OAuth2PlatformClient (in Intuit.Ipp.OAuth2PlatformClient.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
C#
Copy
public
static
void
SetToken
(
this
HttpClient
client
,
string
scheme
,
string
token
)
Parameters
client
Type:
System.Net.Http
HttpClient
client
scheme
Type:
System
String
scheme
token
Type:
System
String
token
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpClient
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
HttpClientExtensions Class
System.Net.Http Namespace