VssOAuthCredential Class

Inheritance Hierarchy

System.Object
Microsoft.VisualStudio.Services.Common.IssuedTokenCredential
Microsoft.VisualStudio.Services.Common.FederatedCredential
Microsoft.VisualStudio.Services.Client.VssOAuthCredential

Namespace: Microsoft.VisualStudio.Services.Client
Assembly: Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)

Syntax

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

The VssOAuthCredential type exposes the following members.

Constructors

Name Description
Public method VssOAuthCredential(String) Initializes a new VssOAuthCredential instance with the provided access token.
Public method VssOAuthCredential(VssOAuthTokenContainer)
Public method VssOAuthCredential(Uri, String, String, String) Initializes a new VssOAuthCredential instance with the specified client id and secret and either an authorization code or a refresh token
Public method VssOAuthCredential(Uri, String, String, VssOAuthTokenContainer, Action<VssOAuthTokenContainer>) Initializes a new VssOAuthCredential instance with the specified client id and secret and an initial token
Public method VssOAuthCredential(Uri, String, String, String, Action<VssOAuthTokenContainer>) Initializes a new VssOAuthCredential instance with the specified client id and secret and either an authorization code or a refresh token

Top

Properties

Name Description
Public property ClientId Gets the client id.

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 the default hash function. (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.VisualStudio.Services.Client Namespace