Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.Client.IssuedTokenCredential
    Microsoft.TeamFoundation.Client.FederatedCredential
      Microsoft.TeamFoundation.Client.OAuthTokenCredential
Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class OAuthTokenCredential _
    Inherits FederatedCredential
[SerializableAttribute]
public sealed class OAuthTokenCredential : FederatedCredential
[SerializableAttribute]
public ref class OAuthTokenCredential sealed : public FederatedCredential
[<Sealed>]
[<SerializableAttribute>]
type OAuthTokenCredential =  
    class 
        inherit FederatedCredential 
    end
public final class OAuthTokenCredential extends FederatedCredential
The OAuthTokenCredential type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]()  | 
OAuthTokenCredential(String) | Initializes a new OAuthTokenCredential instance with the provided access token. | 
![]()  | 
OAuthTokenCredential(OAuthTokenContainer) | |
![]()  | 
OAuthTokenCredential(Uri, String, String, String) | Initializes a new OAuthTokenCredential instance with the specified client id and secret and either an authorization code or a refresh token | 
![]()  | 
OAuthTokenCredential(Uri, String, String, OAuthTokenContainer, OAuthTokensReceivedCallback) | Initializes a new OAuthTokenCredential instance with the specified client id and secret and an initial token | 
![]()  | 
OAuthTokenCredential(Uri, String, String, String, OAuthTokensReceivedCallback) | Initializes a new OAuthTokenCredential instance with the specified client id and secret and either an authorization code or a refresh token | 
Top
Properties
| Name | Description | |
|---|---|---|
![]()  | 
ClientId | Gets the client id. | 
![]()  | 
TokenStorage | (Inherited from IssuedTokenCredential.) | 
Top
Methods
| Name | Description | |
|---|---|---|
![]()  | 
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
![]()  | 
GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
![]()  | 
GetType | Gets the Type of the current instance. (Inherited from Object.) | 
![]()  | 
ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)