OAuthTokenCredential Constructor (String)
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.StringThe 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.