Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes a new VssOAuthCredential instance with the specified client id and secret and either an authorization code or a refresh token
Namespace: Microsoft.VisualStudio.Services.Client
Assembly: Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)
Syntax
'Declaration
Public Sub New ( _
authorizationUri As Uri, _
clientId As String, _
clientSecret As String, _
authCodeOrRefreshToken As String _
)
public VssOAuthCredential(
Uri authorizationUri,
string clientId,
string clientSecret,
string authCodeOrRefreshToken
)
public:
VssOAuthCredential(
Uri^ authorizationUri,
String^ clientId,
String^ clientSecret,
String^ authCodeOrRefreshToken
)
new :
authorizationUri:Uri *
clientId:string *
clientSecret:string *
authCodeOrRefreshToken:string -> VssOAuthCredential
public function VssOAuthCredential(
authorizationUri : Uri,
clientId : String,
clientSecret : String,
authCodeOrRefreshToken : String
)
Parameters
- authorizationUri
Type: System.Uri
clientId
Type: System.StringThe client id
clientSecret
Type: System.StringThe client secret
authCodeOrRefreshToken
Type: System.StringEither an authorization code or a refresh token which can be used to obtain an access token (and a new refresh 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.