Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new OAuthTokenCredential instance with the provided access token.
Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Sub New ( _
    accessToken As String _
)
public OAuthTokenCredential(
    string accessToken
)
public:
OAuthTokenCredential(
    String^ accessToken
)
new : 
        accessToken:string -> OAuthTokenCredential
public function OAuthTokenCredential(
    accessToken : String
)
Parameters
- accessToken 
 Type: System.String- The OAuth access token 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.