Bagikan melalui


OAuthToken Class

Provides a token that is used for OAuth delegation based authentication

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Client.IssuedToken
    Microsoft.TeamFoundation.Client.OAuthToken

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class OAuthToken _
    Inherits IssuedToken
[SerializableAttribute]
public sealed class OAuthToken : IssuedToken
[SerializableAttribute]
public ref class OAuthToken sealed : public IssuedToken
[<Sealed>]
[<SerializableAttribute>]
type OAuthToken =  
    class 
        inherit IssuedToken 
    end
public final class OAuthToken extends IssuedToken

The OAuthToken type exposes the following members.

Properties

  Name Description
Public property Expiration The expiration time of the token
Public property IsAuthenticated (Inherited from IssuedToken.)
Public property Token Gets the underlying token as string
Public property TokenType Gets the type of OAuth token

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.TeamFoundation.Client Namespace